ST7735_GREENTAB128 rotation problem #2896
Unanswered
MHz000
asked this question in
New processor/display support or capability request
Replies: 2 comments 1 reply
-
The offset correction line has been missed out, add: -D ST7735_GREENTAB128=1 |
Beta Was this translation helpful? Give feedback.
0 replies
-
@Bodmer Is there a document where I could have found out myself that this line was missing in my User_Setup. In which folder TFT_Drivers, xxx_Defines, xxx_Init, xxxRotation etc can I find the missing line #define ST7735_GREENTAB128=1? I have to admit that I don't understand the procedure for unknown displays. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As shown in the pictures the display works well. But there is a problem with rotation=1 and 0 (yellow and green background). Obviously there is an offset in the coordinate system. Can someone tell me how I can correct this?




Maybe a look at the platformio,ini or Setup code will help.
platformio.ini
[env:d1]
platform = espressif8266
board = d1
framework = arduino
monitor_speed = 115200
upload_speed = 512000
build_flags =
-D USER_SETUP_LOADED=1
-D ST7735_DRIVER=1
-D TFT_WIDTH=128
-D TFT_HEIGHT=128
-D TFT_CS=PIN_D8
-D TFT_DC=PIN_D3
-D TFT_RST=PIN_D4
-D LOAD_GLCD=1
-D LOAD_FONT2=1
-D LOAD_FONT4=1
-D LOAD_FONT6=1
-D LOAD_FONT7=1
-D LOAD_FONT8=1
-D SPI_FREQUENCY=27000000
lib_deps = bodmer/TFT_eSPI@^2.5.31
Setup7_ST7735_128x128
#define USER_SETUP_ID 7
#define ST7735_DRIVER
#define TFT_WIDTH 128
#define TFT_HEIGHT 128
#define ST7735_GREENTAB128 // For 128 x 128 display
#define TFT_CS PIN_D8 // Chip select control pin D8
#define TFT_DC PIN_D3 // Data Command control pin
#define TFT_RST PIN_D4 // Reset pin (could connect to NodeMCU RST, see next line)
#define LOAD_GLCD // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH
#define LOAD_FONT2 // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters
#define LOAD_FONT4 // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters
#define LOAD_FONT6 // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm
#define LOAD_FONT7 // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:.
#define LOAD_FONT8 // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-.
//#define LOAD_FONT8N // Font 8. Alternative to Font 8 above, slightly narrower, so 3 digits fit a 160 pixel TFT
#define LOAD_GFXFF // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts
#define SMOOTH_FONT
#define SPI_FREQUENCY 27000000
#define SPI_TOUCH_FREQUENCY 2500000
Beta Was this translation helpful? Give feedback.
All reactions