fix contrast setting for sh1106

This commit is contained in:
penfold42 2018-07-17 19:56:01 +10:00
parent 97eb27bf7a
commit efe0f0bd6d

View file

@ -183,7 +183,8 @@ void SSD1306::SetContrast(u8 value)
contrast = value;
SendCommand(SSD1306_CMD_SET_CONTRAST_CONTROL);
SendCommand(value);
SetVCOMDeselect( value >> 5);
if (type == 1306)
SetVCOMDeselect( value >> 8);
}
void SSD1306::SetVCOMDeselect(u8 value)