-
Notifications
You must be signed in to change notification settings - Fork 7.2k
boards: disco_l475_iot1: fix arduino_i2c assignment #88560
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
base: main
Are you sure you want to change the base?
boards: disco_l475_iot1: fix arduino_i2c assignment #88560
Conversation
zephyrproject-rtos@0f05f58 assigned the `arduino_i2c` to the incorrect pins for the Arduino UNO connector. This assigns them back. signed-off-by: Glenn Andrews <[email protected]>
Sorry that I broke this, and probably better to revert at this point. FWIW I was actually using a shield (https://www.mikroe.com/arduino-uno-click-shield) with effectivley a Uno R1 form factor (it doesn't even have D18/D19) and for which I2C is expected to be on A4/A5. @erwango might be able to comment or pull in folks that know |
I think you're right in adding an Arduino UNO R1 binding as well as the existing R3 binding |
And this looks like the updated R3 click shield ;) |
I would argue the answer to the question is on this very diagram, which only lists I²C as available on pins D18/D19. On the other hand, the Arduino Uno R3 datasheet does specify that D18/D19 are duplicated A4/A5, at page 11. I don't know if there are official guidelines from Arduino about which pins shields should be used for what purpose, but I would remark that all official Arduino shields listed as compatible with Uno R3 use D18/D19 for this purpose - see schematics. To answer your second question, I would argue that the question should really be "why are D18/D19 shorted to A4/A5 on Arduino R3?", the answer to which becomes obvious when looking at the ATmega328p's pinout 🙂 TL;DR: in my opinion, this is a shield issue for using A4/A5 rather than D18/D19. |
0f05f58 assigned the
arduino_i2c
to the incorrect pins for the Arduino UNO connector. This assigns them back.Fixes #88558