aboutsummaryrefslogtreecommitdiff
path: root/libraries/Wire/examples/master_writer/master_writer.ino
diff options
context:
space:
mode:
authorFederico Fissore <f.fissore@arduino.cc>2015-07-06 15:18:33 +0200
committerFederico Fissore <f.fissore@arduino.cc>2015-07-06 15:19:05 +0200
commitb5a130afb51c971fd7ceca8834b6055f1eada253 (patch)
treed1e964f67822e9b3f10382573a9579c85b9c3e3f /libraries/Wire/examples/master_writer/master_writer.ino
parentc13cf02651e178ea7941a82bee364d82c6b19b9c (diff)
Examples: mass code format. See example_formatter.conf
Diffstat (limited to 'libraries/Wire/examples/master_writer/master_writer.ino')
-rw-r--r--libraries/Wire/examples/master_writer/master_writer.ino6
1 files changed, 2 insertions, 4 deletions
diff --git a/libraries/Wire/examples/master_writer/master_writer.ino b/libraries/Wire/examples/master_writer/master_writer.ino
index 9933cc2..5cbea11 100644
--- a/libraries/Wire/examples/master_writer/master_writer.ino
+++ b/libraries/Wire/examples/master_writer/master_writer.ino
@@ -12,15 +12,13 @@
#include <Wire.h>
-void setup()
-{
+void setup() {
Wire.begin(); // join i2c bus (address optional for master)
}
byte x = 0;
-void loop()
-{
+void loop() {
Wire.beginTransmission(8); // transmit to device #8
Wire.write("x is "); // sends five bytes
Wire.write(x); // sends one byte