From 9a9760cc86e1684875e5fdb2f39e146042df9f72 Mon Sep 17 00:00:00 2001 From: Arturo Guadalupi Date: Thu, 7 May 2015 17:41:18 +0200 Subject: Fixes #2969: This fixes the Wire examples that uses I2C reserved address (from 0 to 7) substituting them with 8 that is the first one available and that can be used. I also modified the wire reference http://www.arduino.cc/en/reference/wire according to this fact. --- libraries/Wire/examples/master_writer/master_writer.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libraries/Wire/examples/master_writer') diff --git a/libraries/Wire/examples/master_writer/master_writer.ino b/libraries/Wire/examples/master_writer/master_writer.ino index 482e922..9933cc2 100644 --- a/libraries/Wire/examples/master_writer/master_writer.ino +++ b/libraries/Wire/examples/master_writer/master_writer.ino @@ -21,7 +21,7 @@ byte x = 0; void loop() { - Wire.beginTransmission(4); // transmit to device #4 + Wire.beginTransmission(8); // transmit to device #8 Wire.write("x is "); // sends five bytes Wire.write(x); // sends one byte Wire.endTransmission(); // stop transmitting -- cgit v1.2.3-18-g5258