Music Player for ARCH-PRO

Dependencies:   GT20L16J1Y_font TinyJpgDec mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers mGTFTdev.h Source File

mGTFTdev.h

00001 // --------------------------------------------------------
00002 //  mGTFTdev.h (c) CopYright 2013-2014 Goji.
00003 // --------------------------------------------------------
00004 
00005 #if defined(aitendo26)
00006 
00007   #define ST7783
00008 
00009   #define TFT_DEVID     0x7783
00010   #define TFT_MIN_X     0
00011   #define TFT_MIN_Y     0
00012   #define TFT_MAX_X     320
00013   #define TFT_MAX_Y     240
00014 
00015   #define TFT_HV_VERT   0x0000
00016   #define TFT_HV_HORZ   0x0008
00017   #define mTFT_SET_ORENTATION(am) TFT_wr_index_data(0x03, 0x1030 | am)
00018 
00019   #define TFT_pin_RD    A0
00020   #define TFT_pin_WR    A1  
00021   #define TFT_pin_RS    A2  
00022   #define TFT_pin_CS    A3  
00023   #define TFT_pin_RESET A4
00024 
00025 #elif defined(mcufriend24)
00026 
00027   #define ILI9325
00028 
00029   #define TFT_DEVID     0x9325
00030   #define TFT_MIN_X     0
00031   #define TFT_MIN_Y     0
00032   #define TFT_MAX_X     320
00033   #define TFT_MAX_Y     240
00034 
00035   #define TFT_HV_VERT   0x0000
00036   #define TFT_HV_HORZ   0x0008
00037   #define mTFT_SET_ORENTATION(am) TFT_wr_index_data(0x03, 0x1030 | am)
00038 
00039   #define TFT_pin_RD    A0
00040   #define TFT_pin_WR    A1  
00041   #define TFT_pin_RS    A2  
00042   #define TFT_pin_CS    A3  
00043   #define TFT_pin_RESET A4
00044 
00045 #endif