mirror of
https://github.com/esphome/esphome.git
synced 2024-11-12 18:27:46 +01:00
ssd1306: handle V_COM differently for SH1106 (#5796)
This commit is contained in:
parent
e367ab26e1
commit
d462beea6e
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue