rust-embedded-community / ssd1306

SSD1306 OLED driver
Apache License 2.0
283 stars 69 forks source link

0.6.0 Upgrade problem #157

Closed ostenning closed 3 years ago

ostenning commented 3 years ago

After upgrading to the latest version (0.6.0) and the latest embedded-graphics library I no longer get any output on the display.

I was thinking it was my custom DMA display interface, so I reverted to using the blocking SPI display interface provided by this library but this still hasn't solved the problem.

What could I be missing?

ostenning commented 3 years ago

Okay I found the problem. Because I was using a custom display interface, after the upgrade the reset function no longer existed and I subsequently deleted it (thinking it wasn't required anymore).

I added it back into my initialization manually by toggling the reset pin:

// Custom reset
reset.set_high().unwrap();
delay.delay_ms(1 as u16);
reset.set_low().unwrap();
delay.delay_ms(10 as u16);
reset.set_high().unwrap();

Its working normally now! Thanks!