UniGraphic library test using MPS2+
Dependencies: MMA8451Q SPI_STMPE610 UniGraphic mbed
Fork of testUniGraphic_150217 by
Diff: main.h
- Revision:
- 4:76d15fd29c9f
- Parent:
- 0:be311b6a294c
--- a/main.h Thu Feb 19 01:49:53 2015 +0000 +++ b/main.h Tue Feb 21 13:37:48 2017 +0000 @@ -25,8 +25,33 @@ #define PIN_TSC_INTR PTC9 #define PIN_RESET_TFT PTB10 +#elif defined (TARGET_ARM_MPS2_M7) +#define PIN_MOSI CLCD_MOSI +#define PIN_MISO CLCD_MISO +#define PIN_SCLK CLCD_SCLK +#define PIN_CS_TFT CLCD_SSEL +#define PIN_DC_TFT PTD2 +#define PIN_BL_TFT PTC9 +#define PIN_CS_SD PTA4 +#define PIN_CS_TSC PTA13 +#define PIN_TSC_INTR PTC9 +#define PIN_RESET_TFT CLCD_RESET + +//#elif defined (TARGET_K64F) #else - #error TARGET NOT DEFINED +#define PIN_MOSI D11 +#define PIN_MISO D12 +#define PIN_SCLK D13 +#define PIN_CS_TFT D10 +#define PIN_DC_TFT D9 +#define PIN_BL_TFT D7 +#define PIN_CS_SD D4 +#define PIN_CS_TSC D8 +#define PIN_TSC_INTR D7 +#define PIN_RESET_TFT LED1 + +//#else +// #error TARGET NOT DEFINED #endif #endif /* _MAIN_H_ */ \ No newline at end of file