NXP Rapid IoT prototyping kit port of Silabs "hungry gecko" smake-like game. https://os.mbed.com/teams/SiliconLabs/code/Hungry_gecko/
Dependencies: lib_sx9500 GraphicsDisplay ColorMemLCD Large_fonts
settings.h
00001 /***************************************************************************//** 00002 * @file settings.h 00003 * @settings file for Hungry Gecko program 00004 ******************************************************************************/ 00005 #ifndef SETTINGS_H_ 00006 #define SETTINGS_H_ 00007 #include "LCDSettings.h" 00008 #include "ColorMemLCD.h" 00009 00010 #define MAXLENGTH 255 00011 #define STEPSIZE 7 00012 00013 /* Define board limits, note that the display height and display width is 128 00014 * This particlular choice leads to 255 STEPSIZE x STEPSIZE tiles. Thus, 00015 * the tile number can be stored in 1 uint8_t 00016 * */ 00017 #define TOPEDGE 3 00018 #define BOARD_HEIGHT 15 00019 #define BOARD_WIDTH 16 00020 #define BOARDERWIDTH (DISPLAY_WIDTH - STEPSIZE*BOARD_WIDTH) 00021 00022 #define FOREGROUND_COLOR LCD_COLOR_BLACK 00023 #define BACKGROUND_COLOR LCD_COLOR_GREEN // LCD_COLOR_WHITE 00024 00025 #define MULTI_UPDATE 0 00026 #define TICKER_EN 1 00027 #define TOUCH_EN 1 00028 00029 /* Define allowed direction to move */ 00030 typedef enum{ 00031 LEFT=0, RIGHT, UP, DOWN 00032 } Direction; 00033 00034 #endif /* SETTINGS_H_ */
Generated on Mon Aug 1 2022 14:25:58 by 1.7.2