From a3ea15cfd94920429a73249c65a24ecf99222855 Mon Sep 17 00:00:00 2001 From: lady ada Date: Wed, 29 Jul 2020 18:23:16 -0400 Subject: [PATCH] fix the widths/heights --- adafruit-pitft.sh | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/adafruit-pitft.sh b/adafruit-pitft.sh index 6e436c1..723673f 100755 --- a/adafruit-pitft.sh +++ b/adafruit-pitft.sh @@ -52,16 +52,6 @@ ROTATE_28c90="rotate=90,touch-swapxy=true,touch-invx=true" ROTATE_28c180="rotate=180" ROTATE_28c270="rotate=270,touch-swapxy=true,touch-invy=true" -MADCTL_st7789_240x2400="0x36,0x60,-1,0x37,0x00,0x00,-1" -MADCTL_st7789_240x24090="0x36,0x00,-1,0x37,0x00,0x00,-1" -MADCTL_st7789_240x240180="0x36,0xA0,-1,0x37,0x00,0x50,-1" -MADCTL_st7789_240x240270="0x36,0xC0,-1,0x37,0x00,0x50,-1" - -MADCTL_st7789_240x32090="0x36,0x60,-1,0x37,0x00,0x00,-1" -MADCTL_st7789_240x320180="0x36,0x00,-1,0x37,0x00,0x00,-1" -MADCTL_st7789_240x320270="0x36,0xA0,-1,0x37,0x00,0x00,-1" -MADCTL_st7789_240x3200="0x36,0xC0,-1,0x37,0x00,0x00,-1" - warning() { echo WARNING : $1 } @@ -570,9 +560,9 @@ fi PITFT_ROTATIONS=("90" "180" "270" "0") PITFT_TYPES=("28r" "22" "28c" "35r" "st7789_240x240" "st7789_240x135" "st7789_240x320") -WIDTH_VALUES=(320 320 320 320 480 240) -HEIGHT_VALUES=(240 240 240 240 320 240) -HZ_VALUES=(64000000 64000000 64000000 64000000 32000000 64000000) +WIDTH_VALUES=(320 320 320 480 240 240 320) +HEIGHT_VALUES=(240 240 240 320 240 135 240) +HZ_VALUES=(64000000 64000000 64000000 32000000 64000000 64000000)