st7735s add CONFIG_LV_TFT_DISPLAY_OFFSETS
This commit is contained in:
parent
26fe6e7703
commit
9cb0e8f505
2 changed files with 7 additions and 2 deletions
|
@ -37,8 +37,10 @@ extern "C" {
|
|||
// https://github.com/adafruit/Adafruit-ST7735-Library
|
||||
//
|
||||
#define ST7735_GREENTAB160x80 // For 160 x 80 display (BGR, inverted, 26 / 1 offset)
|
||||
#define COLSTART 26
|
||||
#define ROWSTART 1
|
||||
#if (CONFIG_LV_TFT_DISPLAY_OFFSETS)
|
||||
#define COLSTART CONFIG_LV_TFT_DISPLAY_X_OFFSET
|
||||
#define ROWSTART CONFIG_LV_TFT_DISPLAY_Y_OFFSET
|
||||
#endif
|
||||
|
||||
// Delay between some initialisation commands
|
||||
#define TFT_INIT_DELAY 0x80
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue