-
-
Notifications
You must be signed in to change notification settings - Fork 7k
i2c example using reserved i2c address #2969
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@bperrybap you are right, but the example is intended to be used with two Arduino so the address doesn't matter. Thank you! |
Yes it does! |
+1 for fixing this. |
Hello Arturo, Friday, April 17, 2015, 11:07:04 AM, you wrote:
That is a totally bogus answer. And when someone builds on that example to talk between an Arduino and Fix the example, please. Best regards, |
I made a PR because the on-line page takes the code from git. I fix the problem in all the examples. Let me know if it is ok. |
I adde this statement here: "However the addresses from 0 to 7 are not used because are reserved so the first address that can be used is 8. " Is it ok in this way? |
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.
Fix for #2969 (I2C reserved addresses)
The example on this page:
http://arduino.cc/en/Tutorial/MasterWriter
Is using i2c address 0x4 which appears to be in the reserved address space.
0 to 7 are reserved.
Not sure what to pick for an address. It probabaly doesn't matter, but it would be best to update the example to avoid using an address from the reserved address range.
It's been a while since I've tested, but I believe that these reserved addresses don't work on the pic32 processors.
The text was updated successfully, but these errors were encountered: