My first mbed-os 5.x test project with MAX32630FTHR and Adafruit 2.4" TFT with touch.
Dependencies: BMI160 SPI_STMPE610 USBDevice UniGraphic max32630fthr
maze.h
00001 #ifndef _MAZE_H_ 00002 #define _MAZE_H_ defined 00003 00004 #define MAZE_W 20 00005 #define MAZE_H 20 00006 00007 #define POS_PATH 0 00008 #define POS_WALL 1 00009 #define POS_START 2 00010 #define POS_GOAL 3 00011 00012 uint8_t maze[MAZE_H][MAZE_W] = { 00013 {1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, 00014 {1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, 00015 {1,0,1,0,1,0,1,1,1,1,0,1,1,1,1,1,1,1,0,1}, 00016 {1,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,1,0,1}, 00017 {1,1,1,1,1,0,1,0,1,1,1,1,1,1,1,0,1,1,0,1}, 00018 {1,0,0,0,1,0,1,0,1,0,0,0,0,0,1,0,1,1,0,1}, 00019 {1,0,1,1,1,0,1,0,1,1,0,1,0,1,1,0,1,1,0,1}, 00020 {1,0,1,0,0,0,1,0,1,1,0,1,0,1,0,0,1,1,0,1}, 00021 {1,0,1,0,1,1,1,0,0,1,0,1,0,1,0,1,1,1,0,1}, 00022 {1,0,1,0,1,1,1,1,1,1,0,1,0,1,0,0,0,1,0,1}, 00023 {1,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,0,1,0,1}, 00024 {1,0,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,0,1}, 00025 {1,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1}, 00026 {1,0,1,0,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1}, 00027 {1,0,1,0,1,0,0,0,1,0,0,0,0,0,0,1,1,1,1,1}, 00028 {1,0,1,0,1,1,1,0,1,0,1,1,1,1,1,1,1,1,1,1}, 00029 {1,0,1,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,1}, 00030 {1,0,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,0,1}, 00031 {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1}, 00032 {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,1} 00033 } ; 00034 00035 extern void doMaze(void) ; 00036 #endif // _MAZE_H_
Generated on Tue Jul 12 2022 21:48:05 by 1.7.2