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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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