Snake game for a 5x5 LED matrix

Dependencies:   MCP23S17 mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.h Source File

main.h

00001 // Function prototypes
00002 
00003 void updateSnakeLeds();
00004 void updateFoodLed();
00005 bool checkForSnakeEating();
00006 void updateDirectionInput();
00007 
00008 // constants
00009 
00010 #define snakeStartCol 0
00011 #define snakeStartRow 0
00012 
00013 #define foodStartCol 2
00014 #define foodStartRow 0