![](/media/cache/group/mbed_GUI_wo_mbed.png.50x50_q85.png)
My first trial of using UniGraphic library.
Dependencies: MMA8451Q SPI_STMPE610 UniGraphic mbed
main.h@3:1cd979ad1e1d, 2015-02-19 (annotated)
- Committer:
- Rhyme
- Date:
- Thu Feb 19 01:49:53 2015 +0000
- Revision:
- 3:1cd979ad1e1d
- Parent:
- 0:be311b6a294c
FastWindow option tried and working
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Rhyme | 0:be311b6a294c | 1 | #ifndef _MAIN_H_ |
Rhyme | 0:be311b6a294c | 2 | #define _MAIN_H_ included |
Rhyme | 0:be311b6a294c | 3 | |
Rhyme | 0:be311b6a294c | 4 | #if defined (TARGET_KL25Z) |
Rhyme | 0:be311b6a294c | 5 | #define PIN_MOSI PTD2 |
Rhyme | 0:be311b6a294c | 6 | #define PIN_MISO PTD3 |
Rhyme | 0:be311b6a294c | 7 | #define PIN_SCLK PTD1 |
Rhyme | 0:be311b6a294c | 8 | #define PIN_CS_TFT PTD0 |
Rhyme | 0:be311b6a294c | 9 | #define PIN_DC_TFT PTD5 |
Rhyme | 0:be311b6a294c | 10 | #define PIN_BL_TFT PTC9 |
Rhyme | 0:be311b6a294c | 11 | #define PIN_CS_SD PTA4 |
Rhyme | 0:be311b6a294c | 12 | #define PIN_CS_TSC PTA13 |
Rhyme | 0:be311b6a294c | 13 | #define PIN_TSC_INTR PTC9 |
Rhyme | 0:be311b6a294c | 14 | #define PIN_RESET_TFT PTB10 |
Rhyme | 0:be311b6a294c | 15 | |
Rhyme | 0:be311b6a294c | 16 | #elif defined (TARGET_KL46Z) |
Rhyme | 0:be311b6a294c | 17 | #define PIN_MOSI PTD6 |
Rhyme | 0:be311b6a294c | 18 | #define PIN_MISO PTD7 |
Rhyme | 0:be311b6a294c | 19 | #define PIN_SCLK PTD5 |
Rhyme | 0:be311b6a294c | 20 | #define PIN_CS_TFT PTD4 |
Rhyme | 0:be311b6a294c | 21 | #define PIN_DC_TFT PTD2 |
Rhyme | 0:be311b6a294c | 22 | #define PIN_BL_TFT PTC9 |
Rhyme | 0:be311b6a294c | 23 | #define PIN_CS_SD PTA4 |
Rhyme | 0:be311b6a294c | 24 | #define PIN_CS_TSC PTA13 |
Rhyme | 0:be311b6a294c | 25 | #define PIN_TSC_INTR PTC9 |
Rhyme | 0:be311b6a294c | 26 | #define PIN_RESET_TFT PTB10 |
Rhyme | 0:be311b6a294c | 27 | |
Rhyme | 0:be311b6a294c | 28 | #else |
Rhyme | 0:be311b6a294c | 29 | #error TARGET NOT DEFINED |
Rhyme | 0:be311b6a294c | 30 | #endif |
Rhyme | 0:be311b6a294c | 31 | |
Rhyme | 0:be311b6a294c | 32 | #endif /* _MAIN_H_ */ |