My first trial of using UniGraphic library.

Dependencies:   MMA8451Q SPI_STMPE610 UniGraphic mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.h Source File

main.h

00001 #ifndef _MAIN_H_
00002 #define _MAIN_H_ included
00003 
00004 #if   defined (TARGET_KL25Z) 
00005 #define PIN_MOSI        PTD2
00006 #define PIN_MISO        PTD3 
00007 #define PIN_SCLK        PTD1 
00008 #define PIN_CS_TFT      PTD0 
00009 #define PIN_DC_TFT      PTD5 
00010 #define PIN_BL_TFT      PTC9 
00011 #define PIN_CS_SD       PTA4 
00012 #define PIN_CS_TSC      PTA13
00013 #define PIN_TSC_INTR    PTC9
00014 #define PIN_RESET_TFT   PTB10
00015  
00016 #elif defined (TARGET_KL46Z)
00017 #define PIN_MOSI        PTD6
00018 #define PIN_MISO        PTD7 
00019 #define PIN_SCLK        PTD5 
00020 #define PIN_CS_TFT      PTD4 
00021 #define PIN_DC_TFT      PTD2 
00022 #define PIN_BL_TFT      PTC9 
00023 #define PIN_CS_SD       PTA4 
00024 #define PIN_CS_TSC      PTA13
00025 #define PIN_TSC_INTR    PTC9
00026 #define PIN_RESET_TFT   PTB10
00027 
00028 #else
00029   #error TARGET NOT DEFINED
00030 #endif
00031 
00032 #endif /* _MAIN_H_ */