fix contrast setting for sh1106
This commit is contained in:
parent
97eb27bf7a
commit
efe0f0bd6d
1 changed files with 2 additions and 1 deletions
|
@ -183,7 +183,8 @@ void SSD1306::SetContrast(u8 value)
|
||||||
contrast = value;
|
contrast = value;
|
||||||
SendCommand(SSD1306_CMD_SET_CONTRAST_CONTROL);
|
SendCommand(SSD1306_CMD_SET_CONTRAST_CONTROL);
|
||||||
SendCommand(value);
|
SendCommand(value);
|
||||||
SetVCOMDeselect( value >> 5);
|
if (type == 1306)
|
||||||
|
SetVCOMDeselect( value >> 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SSD1306::SetVCOMDeselect(u8 value)
|
void SSD1306::SetVCOMDeselect(u8 value)
|
||||||
|
|
Loading…
Reference in a new issue