1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-03 11:52:20 +01:00

Add display GPIO setup instruction for Aliexpress display (#3851)

This commit is contained in:
Keith Burzinski
2022-09-30 01:10:53 -05:00
committed by GitHub
parent 106de3530d
commit f4a84765cd

View File

@@ -76,6 +76,8 @@ void SSD1327::setup() {
this->command(0x55);
this->command(SSD1327_SETVCOMHVOLTAGE); // Set High Voltage Level of COM Pin
this->command(0x1C);
this->command(SSD1327_SETGPIO); // Switch voltage converter on (for Aliexpress display)
this->command(0x03);
this->command(SSD1327_NORMALDISPLAY); // set display mode
set_brightness(this->brightness_);
this->fill(Color::BLACK); // clear display - ensures we do not see garbage at power-on