diff options
author | Oleg Gerasimov <ogerasimov@gmail.com> | 2016-08-14 12:46:32 +0300 |
---|---|---|
committer | Oleg Gerasimov <ogerasimov@gmail.com> | 2016-08-19 23:45:38 +0300 |
commit | 6997865c57871afae6a25f784641ed410360d89f (patch) | |
tree | b3a11730ad56bc66698ccdf437dd352bc42e378c /drivers/gdisp/ST7735/st7735.h | |
parent | 5897122c0724f1718c96d36df92e836245b0de37 (diff) | |
download | uGFX-6997865c57871afae6a25f784641ed410360d89f.tar.gz uGFX-6997865c57871afae6a25f784641ed410360d89f.tar.bz2 uGFX-6997865c57871afae6a25f784641ed410360d89f.zip |
Added ST7735 driver
Diffstat (limited to 'drivers/gdisp/ST7735/st7735.h')
-rw-r--r-- | drivers/gdisp/ST7735/st7735.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/drivers/gdisp/ST7735/st7735.h b/drivers/gdisp/ST7735/st7735.h new file mode 100644 index 00000000..49967f9f --- /dev/null +++ b/drivers/gdisp/ST7735/st7735.h @@ -0,0 +1,51 @@ +#ifndef _ST7735_H_ +#define _ST7735_H_ + +#define ST7735_NOP 0x00 +#define ST7735_SWRESET 0x01 +#define ST7735_RDDID 0x04 +#define ST7735_RDDST 0x09 + +#define ST7735_SLPIN 0x10 +#define ST7735_SLPOUT 0x11 +#define ST7735_PTLON 0x12 +#define ST7735_NORON 0x13 + +#define ST7735_INVOFF 0x20 +#define ST7735_INVON 0x21 +#define ST7735_DISPOFF 0x28 +#define ST7735_DISPON 0x29 +#define ST7735_CASET 0x2A +#define ST7735_RASET 0x2B +#define ST7735_RAMWR 0x2C +#define ST7735_RAMRD 0x2E + +#define ST7735_PTLAR 0x30 +#define ST7735_COLMOD 0x3A +#define ST7735_MADCTL 0x36 + +#define ST7735_FRMCTR1 0xB1 +#define ST7735_FRMCTR2 0xB2 +#define ST7735_FRMCTR3 0xB3 +#define ST7735_INVCTR 0xB4 +#define ST7735_DISSET5 0xB6 + +#define ST7735_PWCTR1 0xC0 +#define ST7735_PWCTR2 0xC1 +#define ST7735_PWCTR3 0xC2 +#define ST7735_PWCTR4 0xC3 +#define ST7735_PWCTR5 0xC4 +#define ST7735_VMCTR1 0xC5 + +#define ST7735_RDID1 0xDA +#define ST7735_RDID2 0xDB +#define ST7735_RDID3 0xDC +#define ST7735_RDID4 0xDD + +#define ST7735_PWCTR6 0xFC + +#define ST7735_GMCTRP1 0xE0 +#define ST7735_GMCTRN1 0xE1 + +#endif + |