rust-embedded-community / sh1106

SH1106 driver for use with embedded_hal and (optionally) embedded_graphics
Apache License 2.0
34 stars 36 forks source link

nothing displayed on LCD #38

Closed marvinrobot42 closed 7 months ago

marvinrobot42 commented 7 months ago

I just purchased a Sparkfun SH1106 LCD and have it connected to an ESP32-C6. The Sparkfun Arduino OLED simple "Hello" text example works.

When I switch over to Rust and run the text.rs example it works. But after power down/up or reset the board the Rust example no longer works. If I switch back to Arduino and upload the same Hello text example is works, and so does the Rust text.rs example again.

There seems to be something missing in the init() method, I think.

marvinrobot42 commented 7 months ago

I solved my problem. After looking this the Sparkfun Arduino OLED library I found that it used a SSD1306 "device" module and not a SH1106. There documentation show that the LCD contains a SH1106.

Once I switched to the SSD1306 crate the OLED display works well.