1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 19:32:19 +01:00

ssd1306: handle V_COM differently for SH1106 (#5796)

This commit is contained in:
Christian Schmitt
2023-11-20 04:34:26 +01:00
committed by GitHub
parent e367ab26e1
commit d462beea6e

View File

@@ -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);