C++ DevKit
C++ set of OOP library
|
These commands are those for either the ST7735 TFT 1.44" 128x128 pixels or the ST7735 TFT 1.77" 128x160 pixels interface : 4-wire serial SPI Color coding : Write Data for 16-bit/Pixel (RGB 5-6-5-bit Input), 65K-Colors, COLMOD(IFPF=5) [Cx/W]0x3A[C/W]0x05 Blue PCB : TFT 1.77" 128x160 pixels pinout: 1 GND 2 VCC ( 5V max) 3 SCK (3.3V max) SPI clock 4 SDA (3.3V max) SPI data 5 RESX (3.3V max) RESet to be connected to GPIO pin, Low enable. 6 D/CX (3.3V max) Register Select or D/C_ data/command selection pin to be connected to GPIO pin 7 CSX (3.3V max) Chip Select to be connected to GPIO pin, Low enable. 8 LEDA (3.3V ) can be connected to GPIO pin <em>Red PCB</em> : TFT 1.44" 128x128 pixels mounted on Pico Primer kit v1.0 from www.makerfabs.com pinout: 1 GND connected to GND 2 VSS connected to GND 3 LEDK connected to LEDK 4 LEDA connected to 3.3V 5 VSS_2 connected to GND 6 RES connected to GPIO15 7 A0 D/C_ data/command connected to GPIO14 8 SDA connected to SPI1-TX / GPIO11 9 SCL connected to SPI1-SCK / GPIO10 10 VDD connected to 3.3V 11 VDDIO connected to 3.3V 12 CS_ connected to SPI1-CS / GPIO13 13 VSS_3 connected to GND 14 GND_2 connected to GND signal D/Cx R/W [Cx/W] Command/Write [D/W] Data/Write [D/R] Data/Read Some commands are desactivated because for the used device, the corresponding input/output is not wired. More...
Go to the source code of this file.
Macros | |
#define | ST7735_NOP 0x00u |
[Cx/W] No Operation | |
#define | ST7735_SWRESET 0x01u |
[Cx/W] Software Reset | |
#define | ST7735_SLPIN 0x10u |
[Cx/W] Sleep In & Booster Off | |
#define | ST7735_SLPOUT 0x11u |
[Cx/W] Sleep Out & Booster On . Wait for 120ms before sending next command. | |
#define | ST7735_PTLON 0x12u |
[Cx/W] Partial Mode On | |
#define | ST7735_NORON 0x13u |
[Cx/W] Partial Off (Normal) | |
#define | ST7735_INVOFF 0x20u |
[Cx/W] Display Inversion Off (Normal) | |
#define | ST7735_INVON 0x21u |
[Cx/W] Display Inversion On | |
#define | ST7735_GAMSET 0x26u |
[Cx/W] Gamma Curve Select (followed by 1[D/W] ) | |
#define | ST7735_DISPOFF 0x28u |
[Cx/W] Display Off | |
#define | ST7735_DISPON 0x29u |
[Cx/W] Display On | |
#define | ST7735_CASET 0x2Au |
[Cx/W] Column Address Set (followed by 4[D/W] ) | |
#define | ST7735_RASET 0x2Bu |
[Cx/W] Row Address Set (followed by 4[D/W] ) | |
#define | ST7735_RAMWR 0x2Cu |
[Cx/W] Memory Write (followed by n[D/W] ) | |
#define | ST7735_RGBSET 0x2Du |
[Cx/W] LUT for 4k,65k,262k Color display (followed by 128[D/W] ) | |
#define | ST7735_PTLAR 0x30u |
[Cx/W] Partial Start/End Address Set (followed by 4[D/W] ) | |
#define | ST7735_MADCTL 0x36u |
[Cx/W] Memory Data Access Control (followed by 1[D/W] ) | |
#define | MADCTL_MY 0x80 |
mirror row address order | |
#define | MADCTL_MX 0x40 |
mirror column address order | |
#define | MADCTL_MV 0x20 |
swap row/column | |
#define | MADCTL_MH 0x04 |
LCD horizontal refresh right to left. | |
#define | MADCTL_ML 0x10 |
LCD vertical refresh Bottom to Top. | |
#define | MADCTL_BGR 0x08 |
BGR color filter order. | |
#define | ST7735_SCRLAR 0x33u |
[Cx/W] Scroll area set (followed by 6[D/W] ) | |
#define | ST7735_VSCSAD 0x37u |
[Cx/W] Scroll Start Address of RAM (followed by 2[D/W] ) | |
#define | ST7735_IDMOFF 0x38u |
[Cx/W] Idle Mode Off | |
#define | ST7735_IDMON 0x39u |
[Cx/W] Idle Mode On | |
#define | ST7735_COLMOD 0x3Au |
[Cx/W] Interface Pixel Format (followed by 1[D/W]). default value is 18b/pixel->To be changed by 16b/pixel | |
#define | ST7735_FRMCTR1 0xB1u |
[Cx/W] ) In normal mode (Full Colors) (followed by 3[D/W] ) | |
#define | ST7735_FRMCTR2 0xB2u |
[Cx/W] ) In normal mode (8-colors) (followed by 3[D/W] ) | |
#define | ST7735_FRMCTR3 0xB3u |
[Cx/W] ) In Partial mode + Full Colors (followed by 6[D/W] ) | |
#define | ST7735_INVCTR 0xB4u |
[Cx/W] ) Display Inversion Control (followed by 1[D/W] ) | |
#define | ST7735_DISSET5 0xB6u |
[Cx/W] ) Display Function set 5 (followed by 2[D/W] ) NOTICE: for ST7735 only, not available on ST7735S | |
#define | ST7735_PWCTR1 0xC0u |
[Cx/W] ) Power Control Setting (followed by 3[D/W] ) | |
#define | ST7735_PWCTR2 0xC1u |
[Cx/W] ) Power Control Setting (followed by 1[D/W] ) | |
#define | ST7735_PWCTR3 0xC2u |
[Cx/W] ) Power Control Setting (followed by 2[D/W] ) | |
#define | ST7735_PWCTR4 0xC3u |
[Cx/W] ) Power Control Setting in Idle Mode (8-colors) (followed by 2[D/W] ) | |
#define | ST7735_PWCTR5 0xC4u |
[Cx/W] ) Power Control Setting in Partial Mode + Full COlors (followed by 2[D/W] ) | |
#define | ST7735_VMCTR1 0xC5u |
[Cx/W] ) VCOM Control 1 (followed by 1[D/W] ) | |
#define | ST7735_VMOFTR 0xC7u |
[Cx/W] ) Set VCOM Offset Control (followed by 1[D/W] ) | |
#define | ST7735_WRID2 0xD1u |
[Cx/W] ) Set LCM Version Code (followed by 1[D/W] ) | |
#define | ST7735_WRID3 0xD2u |
[Cx/W] ) Customer Project COde (followed by 1[D/W] ) | |
#define | ST7735_NVCTR1 0xD9u |
[Cx/W] ) NVM Control Status (followed by 1[D/W] ) | |
#define | ST7735_NVCTR3 0xDFu |
[Cx/W] ) NVM Write Command (followed by [D/W] command code ,[D/W]0xA5 ) | |
#define | ST7735_GAMCTRP1 0xE0u |
[Cx/W] ) Set Gamma adjustment (+polarity) (followed by 16[D/W] ) | |
#define | ST7735_GAMCTRN1 0xE1u |
[Cx/W] ) Set Gamma adjustment (-polarity) (followed by 16[D/W] ) | |
#define | ST7735_GCV 0xFCu |
[Cx/W] ) Gate Pump Clock Frequency Variable (followed by 1[D/W] ) | |
These commands are those for either the ST7735 TFT 1.44" 128x128 pixels or the ST7735 TFT 1.77" 128x160 pixels interface : 4-wire serial SPI Color coding : Write Data for 16-bit/Pixel (RGB 5-6-5-bit Input), 65K-Colors, COLMOD(IFPF=5) [Cx/W]0x3A[C/W]0x05 Blue PCB : TFT 1.77" 128x160 pixels pinout: 1 GND 2 VCC ( 5V max) 3 SCK (3.3V max) SPI clock 4 SDA (3.3V max) SPI data 5 RESX (3.3V max) RESet to be connected to GPIO pin, Low enable. 6 D/CX (3.3V max) Register Select or D/C_ data/command selection pin to be connected to GPIO pin 7 CSX (3.3V max) Chip Select to be connected to GPIO pin, Low enable. 8 LEDA (3.3V ) can be connected to GPIO pin <em>Red PCB</em> : TFT 1.44" 128x128 pixels mounted on Pico Primer kit v1.0 from www.makerfabs.com pinout: 1 GND connected to GND 2 VSS connected to GND 3 LEDK connected to LEDK 4 LEDA connected to 3.3V 5 VSS_2 connected to GND 6 RES connected to GPIO15 7 A0 D/C_ data/command connected to GPIO14 8 SDA connected to SPI1-TX / GPIO11 9 SCL connected to SPI1-SCK / GPIO10 10 VDD connected to 3.3V 11 VDDIO connected to 3.3V 12 CS_ connected to SPI1-CS / GPIO13 13 VSS_3 connected to GND 14 GND_2 connected to GND signal D/Cx R/W [Cx/W] Command/Write [D/W] Data/Write [D/R] Data/Read Some commands are desactivated because for the used device, the corresponding input/output is not wired.