You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
change ST77XX_MADCTL_MY 0x80 to 0x00 in Adafruit_ST77xx.h
I found an alternative solution. While your approach was correct, my display required flipping the image along the X-axis instead of the Y-axis. I assume this adjustment was also necessary for classic-audio.
Display: 80x160 color TFT display (driver ST7735S SPI )
Arduino: Arduino ProMini 3V3
I have downloaded the latest Adafruit-ST7735-Library yesterday.
The problem:
The text is displayed mirrowed (see pickture below)
The question: how can I correct that problem?
The test sketch:
#include <Adafruit_GFX.h>
#include <Adafruit_ST7735.h>
Adafruit_ST7735 lcd = Adafruit_ST7735(9,10,8);
//--- LCD color def. --------------------------------
#define BLACK 0x000
#define BLUE 0x001F
#define GREEN 0x07E0
#define YELLOW 0xFFE0
#define WHITE 0xFFFF
#define GREY 0x652F
#define RED 0xF800
#define OLIVE 0x7BE0
#define ORANGE 0xFD20
void setup(void){
// --- Display -----------------------------------
lcd.initR(INITR_MINI160x80);
lcd.invertDisplay(1);
lcd.setRotation(2);
lcd.fillScreen(BLACK);
}
void loop(){
lcd.setTextColor(GREEN);
lcd.setCursor(0,0);lcd.print("CLASSIC AUDIO");
lcd.setTextColor(RED);
lcd.setCursor(0,15);lcd.print("DESIGN");
lcd.setTextColor(YELLOW);
lcd.setCursor(0,25);lcd.print("Attenuator");
while(1);
}
The text was updated successfully, but these errors were encountered: