aboutsummaryrefslogtreecommitdiff
path: root/libraries/Wire/examples/master_writer/master_writer.ino
diff options
context:
space:
mode:
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