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

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