![](/media/cache/profiles/0d382a5fec7012c843c1bdfb0935c9a6.50x50_q85.jpg)
My first mbed-os 5.x test project with MAX32630FTHR and Adafruit 2.4" TFT with touch.
Dependencies: BMI160 SPI_STMPE610 USBDevice UniGraphic max32630fthr
My first test program of mbed-os 5.x, using MAX32630FTHR and Adafruit 2.4" TFT with Touch.
On 22-Sep-2017 Monitoring both Acc and Gyr added to the screen 3 Controlling the backlight via STMPE610 GPIO-2 added
maze.h@3:43de31beea45, 2017-09-22 (annotated)
- Committer:
- Rhyme
- Date:
- Fri Sep 22 05:35:56 2017 +0000
- Revision:
- 3:43de31beea45
- Parent:
- 0:a4d7417f7672
some backlight control added
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Rhyme | 0:a4d7417f7672 | 1 | #ifndef _MAZE_H_ |
Rhyme | 0:a4d7417f7672 | 2 | #define _MAZE_H_ defined |
Rhyme | 0:a4d7417f7672 | 3 | |
Rhyme | 0:a4d7417f7672 | 4 | #define MAZE_W 20 |
Rhyme | 0:a4d7417f7672 | 5 | #define MAZE_H 20 |
Rhyme | 0:a4d7417f7672 | 6 | |
Rhyme | 0:a4d7417f7672 | 7 | #define POS_PATH 0 |
Rhyme | 0:a4d7417f7672 | 8 | #define POS_WALL 1 |
Rhyme | 0:a4d7417f7672 | 9 | #define POS_START 2 |
Rhyme | 0:a4d7417f7672 | 10 | #define POS_GOAL 3 |
Rhyme | 0:a4d7417f7672 | 11 | |
Rhyme | 0:a4d7417f7672 | 12 | uint8_t maze[MAZE_H][MAZE_W] = { |
Rhyme | 0:a4d7417f7672 | 13 | {1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, |
Rhyme | 0:a4d7417f7672 | 14 | {1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, |
Rhyme | 0:a4d7417f7672 | 15 | {1,0,1,0,1,0,1,1,1,1,0,1,1,1,1,1,1,1,0,1}, |
Rhyme | 0:a4d7417f7672 | 16 | {1,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,1,0,1}, |
Rhyme | 0:a4d7417f7672 | 17 | {1,1,1,1,1,0,1,0,1,1,1,1,1,1,1,0,1,1,0,1}, |
Rhyme | 0:a4d7417f7672 | 18 | {1,0,0,0,1,0,1,0,1,0,0,0,0,0,1,0,1,1,0,1}, |
Rhyme | 0:a4d7417f7672 | 19 | {1,0,1,1,1,0,1,0,1,1,0,1,0,1,1,0,1,1,0,1}, |
Rhyme | 0:a4d7417f7672 | 20 | {1,0,1,0,0,0,1,0,1,1,0,1,0,1,0,0,1,1,0,1}, |
Rhyme | 0:a4d7417f7672 | 21 | {1,0,1,0,1,1,1,0,0,1,0,1,0,1,0,1,1,1,0,1}, |
Rhyme | 0:a4d7417f7672 | 22 | {1,0,1,0,1,1,1,1,1,1,0,1,0,1,0,0,0,1,0,1}, |
Rhyme | 0:a4d7417f7672 | 23 | {1,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,0,1,0,1}, |
Rhyme | 0:a4d7417f7672 | 24 | {1,0,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,0,1}, |
Rhyme | 0:a4d7417f7672 | 25 | {1,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1}, |
Rhyme | 0:a4d7417f7672 | 26 | {1,0,1,0,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1}, |
Rhyme | 0:a4d7417f7672 | 27 | {1,0,1,0,1,0,0,0,1,0,0,0,0,0,0,1,1,1,1,1}, |
Rhyme | 0:a4d7417f7672 | 28 | {1,0,1,0,1,1,1,0,1,0,1,1,1,1,1,1,1,1,1,1}, |
Rhyme | 0:a4d7417f7672 | 29 | {1,0,1,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,1}, |
Rhyme | 0:a4d7417f7672 | 30 | {1,0,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,0,1}, |
Rhyme | 0:a4d7417f7672 | 31 | {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1}, |
Rhyme | 0:a4d7417f7672 | 32 | {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,1} |
Rhyme | 0:a4d7417f7672 | 33 | } ; |
Rhyme | 0:a4d7417f7672 | 34 | |
Rhyme | 0:a4d7417f7672 | 35 | extern void doMaze(void) ; |
Rhyme | 0:a4d7417f7672 | 36 | #endif // _MAZE_H_ |