Fix contrast and display mode initialisation

The double byte command OLED_CMD_SET_CONTRAST (SSD1306 datasheet rev 1.1 p.28) was followed by display_mode.
So the contrast was set to 0xA6 or 0xA7 depending on the display mode configured and the display mode itself wasn't configurable.
This commit is contained in:
Alnef 2021-04-10 14:59:11 +02:00 committed by GitHub
parent 147cacc0af
commit 63cfe0fdd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,8 +126,8 @@ void ssd1306_init(void)
orientation_1,
orientation_2,
OLED_CMD_SET_CONTRAST,
display_mode,
0xFF,
display_mode,
OLED_CMD_DISPLAY_ON
};