-
-
Notifications
You must be signed in to change notification settings - Fork 212
Unable to get I2C working on Raspberry Pi Pico #212
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
Hi @fsievers ,
For example, using the standard Adafruit library, you can write
and the relevant I2C will be allocated on pins 14/15 |
Ok, I've checked it with the ssd1306 I2C example and the display works for all I2C0 pins (sorry I didn't checked the display itself without scan). But on the I2C1 pins, the display just give me the first frame and after that it doesn't show any further frame. But for this topic, I think it's solved, regarding to I2C scan problem and known issue of |
I think you only see the first image since the example defaults to
so, as soon as BUTTON_B gets configured, the I2C functionality is lost 🙂 |
No matter what I try, I can't get I2C to work. I'm using the following i2c-scan to discover a SSD1306 display:
But I always get
No I2C devices found
. Inpins_arduino.h
it says, that SDA is on GPIO 6 and SCL is on GPIO 7 (see https://datasheets.raspberrypi.org/pico/Pico-R3-A4-Pinout.pdf). But the program is not able to discover the OLED display.In a second try, I added
after the
Wire.h
include and tried to get it working on the Raspberry Pi Pico default I2C0 connections. But this doesn't work, too.But I can confirm, that the Pico and OLED are OK and I2C is working, if I use https://github.com/earlephilhower/arduino-pico installed via Board Manager. The project uses GPIO 4 and 5 for I2C0 (Wire) by default. And I can even change the GPIOs via
in the
setup()
function right before doingWire.begin()
.What can I do, to get I2C working with the ArduinoCore-mbed?
The text was updated successfully, but these errors were encountered: