lexus2k / ssd1306

Driver for SSD1306, SSD1331, SSD1351, IL9163, ILI9341, ST7735, PCD8544, Nokia 5110 displays running on Arduino/ESP32/Linux (Rasperry) platforms
MIT License
657 stars 125 forks source link

Add contrast control for ssd1306 #21

Closed CromFr closed 6 years ago

CromFr commented 6 years ago

This allows to control the display contrast / intensity as defined in the SSD1306 specs. Only tested on Arduino Uno because I have no other device, but it should work the same since this is quite straightforward.

Note: the current master build fails because of a warning in src/i2c/ssd1306_i2c_twi.c:50. I fixed it on my local repo without commiting it, so you won't be able to build this PR without updating it

lexus2k commented 6 years ago

Hi @CromFr, thank you for the commit. The changes are merged to the master branch