mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 11:47:30 +01:00
ssd1306: handle V_COM differently for SH1106 (#5796)
This commit is contained in:
parent
e367ab26e1
commit
d462beea6e
@ -154,6 +154,7 @@ void SSD1306::setup() {
|
||||
// Set V_COM (0xDB)
|
||||
this->command(SSD1306_COMMAND_SET_VCOM_DETECT);
|
||||
switch (this->model_) {
|
||||
case SH1106_MODEL_128_64:
|
||||
case SH1107_MODEL_128_64:
|
||||
case SH1107_MODEL_128_128:
|
||||
this->command(0x35);
|
||||
|
Loading…
Reference in New Issue
Block a user