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

I2C and SSD1306 #24

Closed
nickray opened this issue Dec 16, 2018 · 2 comments
Closed

I2C and SSD1306 #24

nickray opened this issue Dec 16, 2018 · 2 comments

Comments

@nickray
Copy link
Member

nickray commented Dec 16, 2018

So great that you're working on the I2C, thanks! I'm trying to get this to work together with @jamwaffles's ssd1306 crate, but... no luck so far. Seeing as you have your own OLED driver (is I2C working with your ssd1351?), I was wondering if you see an obvious issue in https://github.com/nickray/ssd1306/blob/2be6dda92c9521a5babd6154f0012d8679898704/examples/stm32l4_graphics_i2c_128x32.rs? All I know is I'm getting a NACKF upon disp.init. The display (I have two) is attached as GND/VDD/SCL/SDA --> GND/3V3/D1/D0.

@MabezDev
Copy link
Member

My ssd1351 display is spi, but I am using i2c for the max17048 lipo fuel gauge and that works great.

I was wondering if you see an obvious issue in https://github.com/nickray/ssd1306/blob/2be6dda92c9521a5babd6154f0012d8679898704/examples/stm32l4_graphics_i2c_128x32.rs

Looks fine to me. Try and see if you get anything when writing the address out, if you get a nackf when writing the address that indicates the address is wrong(these displays sometimes have more than one address, check the back of the display) or the wiring is wrong. If you have a scope/logic analyzer, that will help a lot in debugging your issue.

@nickray
Copy link
Member Author

nickray commented Dec 17, 2018

Thanks! The address tip did the trick - this particular display ended up listening on address 0x78.

@nickray nickray closed this as completed Dec 17, 2018
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