rust-embedded-community / ssd1306

SSD1306 OLED driver
Apache License 2.0
299 stars 68 forks source link

Fix `BufferedGraphicsMode::clear()` so that it fills all pixels #201

Closed zyla closed 11 months ago

zyla commented 11 months ago

Hi! Thank you for helping out with SSD1306 development! Please:

PR description

Currently clear() fills the buffer with 0x01 bytes, which represent 7 dark pixels and 1 bright pixel. We want all pixels bright. This PR fixes it by filling buffer with 0xff.

jamwaffles commented 11 months ago

This is released in 0.8.4. cargo update should pull the change in.

zyla commented 11 months ago

Thanks, that was very fast!