Support ST7789 rotation offset and boards with no chip select
Other minor changes to tidy code up Put back in ability to call init() multiple times in sketch
This commit is contained in:
1 parent
6c78430d9a
commit
51ed23af0f
12 files changed
+82
-52
No files matched your search
@@ -2,6 +2,7 @@
|
||||
// This is the command sequence that initialises the ST7789 driver
|
||||
|
||||
// Configure ST7789 display
|
||||
|
||||
{
|
||||
static const uint8_t PROGMEM
|
||||
st7789[] = {
|
||||
@@ -9,7 +10,7 @@ static const uint8_t PROGMEM
|
||||
TFT_SWRST, TFT_INIT_DELAY, 150,
|
||||
TFT_SLPOUT, TFT_INIT_DELAY, 255,
|
||||
TFT_COLMOD, 1+TFT_INIT_DELAY, 0x55, 10,
|
||||
TFT_MADCTL, 1, 0x00,
|
||||
TFT_MADCTL, 1, TFT_MAD_RGB,
|
||||
TFT_CASET, 4, 0x00, 0x00, 0x00, 0xF0,
|
||||
TFT_PASET, 4, 0x00, 0x00, 0x00, 0xF0,
|
||||
TFT_INVON, TFT_INIT_DELAY, 10,
|
||||
@@ -21,5 +22,3 @@ static const uint8_t PROGMEM
|
||||
}
|
||||
// End of ST7789 display configuration
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user