modm-io / modm

modm: a C++23 library generator for AVR and ARM Cortex-M devices
https://modm.io
Mozilla Public License 2.0
747 stars 132 forks source link

[driver] SSD1306 SPI display #1090

Open rleh opened 1 year ago

rleh commented 1 year ago
rleh commented 1 year ago

All drivers (ssd1306.i2c, ssd1306.spi and sh1106.i2c) are now tested successfully on Hardware with a HP12832-02 module for SPI and respectively a GME12864-41 module for I²C. image

rleh commented 1 year ago

As I understood, you could test with sh1106 @rleh ? I've got these around. Let me know if I can help with hardware tests.

@TomSaw I tested the examples/nucleo_g474re/sh1106_i2c/ example only with an (genuine) SSD1306 display module, because I don't have any SH1106 modules. It would be very cool if you could test the example with your SH1106 display. I assume you know how to get the example running on a dev board other than the Nucleo-G474RE, otherwise let me know if you need help.

TomSaw commented 1 year ago

As I understood, you could test with sh1106 @rleh ? I've got these around. Let me know if I can help with hardware tests.

@TomSaw I tested the examples/nucleo_g474re/sh1106_i2c/ example only with an (genuine) SSD1306 display module, because I don't have any SH1106 modules. It would be very cool if you could test the example with your SH1106 display. I assume you know how to get the example running on a dev board other than the Nucleo-G474RE, otherwise let me know if you need help.

ok, but gimme 1,2 days pls.

salkinium commented 10 months ago

Is there an update for this?

TomSaw commented 7 months ago

Tested SH1106 and you actually have to keep the ssd1306::AdressingCommands::HigherColumnStartAddress` assignments in the SH1106 driver if you don't have a preference for fuzzy diagonally shifted pages of pixels.

The memory mapping of sh1106 is different (and worse) than SSD1306

rleh commented 7 months ago

Ok, thanks @TomSaw for testing! I'll have a look (again) at the SH1106 behavior. I just ordered two SH1106 displays to be able to test it myself, they should arrive in 2-3 weeks...

TomSaw commented 7 months ago

If there's more to test, i'll respond much faster now cause my "embedded suite" is re-assembled now @rleh . Also, it could have been an option to send you an SH1106 instance from my stock, since we're sitting in the same country as i know.

rleh commented 7 months ago

Also, it could have been an option to send you an SH1106 instance from my stock, since we're sitting in the same country as i know.

Thanks for the offer. I'm afraid I have enough (or even too much) to do until Easter, so I won't take care of it until after anyway.

salkinium commented 2 weeks ago

Can I merge this? What's the status of this?

rleh commented 2 weeks ago

I have to test/debug and maybe fix the problem with the SH1106.