Snake game for a 5x5 LED matrix
ledCube.h
- Committer:
- dhamilton31
- Date:
- 2013-10-17
- Revision:
- 2:9c075a0a6d4e
- Parent:
- 1:5fcb94bb03db
File content as of revision 2:9c075a0a6d4e:
#include "mbed.h" #include "MCP23S17.h" #ifndef LEDCUBE_H #define LEDCUBE_H /* Class to represent the LED cube as a whole. Can light and select LEDs */ class ledCube { public: DigitalOut *ledArray[5][5]; SPI *spi; MCP23S17 *chip; int numRows, numCols; ledCube(); void turnOnLed(char row, char column, char layer); void turnOffLed(char row, char column, char layer); void blink(); unsigned char spiCurrentlyLit; private: DigitalOut *lastLedLit; }; #endif //LEDCUBE_H