Snake game for a 5x5 LED matrix

Dependencies:   MCP23S17 mbed

Committer:
dhamilton31
Date:
Wed Oct 09 16:23:20 2013 +0000
Revision:
0:dc906408980e
Child:
1:5fcb94bb03db
Snake movement completed, along with options to turn LEDs on and off with ledCube class.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dhamilton31 0:dc906408980e 1 #include "mbed.h"
dhamilton31 0:dc906408980e 2
dhamilton31 0:dc906408980e 3 class ledCube{
dhamilton31 0:dc906408980e 4 public:
dhamilton31 0:dc906408980e 5 DigitalOut *ledArray[5][5];
dhamilton31 0:dc906408980e 6 int numRows, numCols;
dhamilton31 0:dc906408980e 7 ledCube();
dhamilton31 0:dc906408980e 8 void lightLed(char row, char column, char layer);
dhamilton31 0:dc906408980e 9 void drawHorLine(char startRow, char startCol, char endRow, char endCol);
dhamilton31 0:dc906408980e 10 void turnOffLed(char row, char column, char layer);
dhamilton31 0:dc906408980e 11
dhamilton31 0:dc906408980e 12 private:
dhamilton31 0:dc906408980e 13 DigitalOut *lastLedLit;
dhamilton31 0:dc906408980e 14 };