mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 15:38:11 +01:00
Fix init sequences
This commit is contained in:
parent
dea297c8d7
commit
089b7dca55
2 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
# Commands
|
# Commands
|
||||||
SW_RESET_CMD = 0x01
|
SW_RESET_CMD = 0x01
|
||||||
SLEEP_OUT = 0x11
|
SLEEP_OUT = 0x11
|
||||||
|
NORON = 0x13
|
||||||
INVERT_OFF = 0x20
|
INVERT_OFF = 0x20
|
||||||
INVERT_ON = 0x21
|
INVERT_ON = 0x21
|
||||||
ALL_ON = 0x23
|
ALL_ON = 0x23
|
||||||
|
@ -56,6 +57,7 @@ chip.cmd(0xC2, 0x00)
|
||||||
chip.delay(10)
|
chip.delay(10)
|
||||||
chip.cmd(TEON, 0x00)
|
chip.cmd(TEON, 0x00)
|
||||||
chip.cmd(PIXFMT, 0x55)
|
chip.cmd(PIXFMT, 0x55)
|
||||||
|
chip.cmd(NORON)
|
||||||
|
|
||||||
chip = DriverChip("AXS15231")
|
chip = DriverChip("AXS15231")
|
||||||
chip.cmd(0xBB, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x5A, 0xA5)
|
chip.cmd(0xBB, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x5A, 0xA5)
|
||||||
|
|
|
@ -111,7 +111,6 @@ void QspiDbi::reset_params_(bool ready) {
|
||||||
mad |= MADCTL_MY;
|
mad |= MADCTL_MY;
|
||||||
this->write_command_(MADCTL_CMD, mad);
|
this->write_command_(MADCTL_CMD, mad);
|
||||||
this->write_command_(BRIGHTNESS, this->brightness_);
|
this->write_command_(BRIGHTNESS, this->brightness_);
|
||||||
this->write_command_(NORON);
|
|
||||||
this->write_command_(DISPLAY_ON);
|
this->write_command_(DISPLAY_ON);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue