rust-embedded-community / ssd1306

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

Add DisplaySize configuration for 64x32 displays #166

Closed carlossless closed 1 year ago

carlossless commented 1 year ago

PR description

Adding a predefined configuration for 64x32 displays, commonly marketed as "0.49" OLED display" like this panel or this module.

carlossless commented 1 year ago

@jamwaffles seems like the build is failing, but it's not due to the changes in this PR.

carlossless commented 1 year ago

@jamwaffles yes, I have the included configuration running in my setup, so I can confirm that it's working as expected.

For additional reference, other drivers have implemented the same offset: https://github.com/olikraus/u8g2/blob/master/csrc/u8x8_d_ssd1306_64x32.c#L159

jamwaffles commented 1 year ago

Released in 0.7.1.