Skip to content

Update mpconfigboard.h DEFAULT_I2C_BUS_SDA & _SCL pins to match pins.c and schematic #4631

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

Merged
merged 1 commit into from
Apr 18, 2021

Conversation

anecdata
Copy link
Member

@anecdata anecdata commented Apr 18, 2021

Feather M0 Adalogger:

For #4630. I don't have a board to test, flying blind.

@ladyada
Copy link
Member

ladyada commented Apr 18, 2021

ask the person who mentioned it to try out the artifact build :)

@Neradoc
Copy link

Neradoc commented Apr 18, 2021

Tested it with a Sparkfun I2C SerLCD wired to the M0 adalogger.
Using both busio and board.I2C to make sure I didn't wire it wrong. ;)

import board
import busio
i2c = busio.I2C(sda=board.SDA, scl=board.SCL)
while not i2c.try_lock(): i2c.unlock()
i2c.writeto(0x72,b"|-") # clear
i2c.writeto(0x72,"Hello")
i2c.unlock()
i2c.deinit()

i2c = board.I2C()
while not i2c.try_lock(): i2c.unlock()
i2c.writeto(0x72," World")
i2c.unlock()

Before the PR: ValueError: Invalid pins at board.I2C()
With the PR: "Hello World" shows up on the LCD.

@ladyada ladyada merged commit be21589 into main Apr 18, 2021
@ladyada
Copy link
Member

ladyada commented Apr 18, 2021

awesome!

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

Successfully merging this pull request may close these issues.

3 participants