Skip to content
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

A preventive measure against electrical short circuits. #109

Closed
mikrocoder opened this issue Jan 29, 2021 · 3 comments
Closed

A preventive measure against electrical short circuits. #109

mikrocoder opened this issue Jan 29, 2021 · 3 comments

Comments

@mikrocoder
Copy link

Hello Hans,

just a precautionary question because I stumbled across this while building my Pin Lib.

Do you take care in your Pin Lib that the pins 18/19 are switched to input and the pullups are switched off when using the Wire Lib?
And when ending Wire.end the pins 22/23 are switched to input and its pullups are switched off. This was overlooked in the original code.

A preventive measure against electrical short circuits.
arduino/Arduino#11221

Translated with www.DeepL.com/Translator (free version)

@MCUdude
Copy link
Owner

MCUdude commented Jan 29, 2021

This is only a potential issue on Arduino Nano Every, since PA2/PF2 and PA3/PF3 are shorted together on the PCB. The i2c interface needs pullup resistors, so it can only drive the lines low.

The only theoretical issue is that PF2 and PF3 are forced high while PA2 and PA3 are in i2c mode. I'll push a commit that fixes this for the Nano Every.

@mikrocoder
Copy link
Author

Hello Hans,

I was in the wrong twi.c.
Have corrected my code suggestion in the link above.

@MCUdude
Copy link
Owner

MCUdude commented Jan 29, 2021

I did realize this, so if you look at the latest commit, it should be correct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants