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

Committer:
Rhyme
Date:
2017-09-21
Revision:
0:a4d7417f7672

File content as of revision 0:a4d7417f7672:

#ifndef _MAZE_H_
#define _MAZE_H_ defined

#define MAZE_W 20
#define MAZE_H 20

#define POS_PATH  0
#define POS_WALL  1
#define POS_START 2
#define POS_GOAL  3

uint8_t maze[MAZE_H][MAZE_W] = {
 {1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
 {1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
 {1,0,1,0,1,0,1,1,1,1,0,1,1,1,1,1,1,1,0,1},
 {1,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,1,0,1},
 {1,1,1,1,1,0,1,0,1,1,1,1,1,1,1,0,1,1,0,1},
 {1,0,0,0,1,0,1,0,1,0,0,0,0,0,1,0,1,1,0,1},
 {1,0,1,1,1,0,1,0,1,1,0,1,0,1,1,0,1,1,0,1},
 {1,0,1,0,0,0,1,0,1,1,0,1,0,1,0,0,1,1,0,1},
 {1,0,1,0,1,1,1,0,0,1,0,1,0,1,0,1,1,1,0,1},
 {1,0,1,0,1,1,1,1,1,1,0,1,0,1,0,0,0,1,0,1},
 {1,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,0,1,0,1},
 {1,0,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,0,1},
 {1,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1},
 {1,0,1,0,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1},
 {1,0,1,0,1,0,0,0,1,0,0,0,0,0,0,1,1,1,1,1},
 {1,0,1,0,1,1,1,0,1,0,1,1,1,1,1,1,1,1,1,1},
 {1,0,1,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,1},
 {1,0,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,0,1},
 {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1},
 {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,1}
} ;      

extern void doMaze(void) ;
#endif // _MAZE_H_