Philip Walne
/
335_project
Dotstar LED demonstration, with stacker game. Uses 2 buttons, and LPC1768 microcontroller
light_game.h
- Committer:
- pwalne
- Date:
- 2017-01-04
- Revision:
- 0:9ab173ff6353
File content as of revision 0:9ab173ff6353:
/** * A abstract base class of a light game. This might not even be a light game, but rather a demonstration. * * */ #ifndef _LIGHT_GAME_H #define _LIGHT_GAME_H #include <./DotStar/DotStar.h> #include "mbed.h" Serial pc1(USBTX, USBRX); class Light_Game { public: Light_Game() {} virtual void init() {pc1.printf("NOOO");} virtual void update() {} virtual void btn1() {} virtual void btn2() {} void end() {} virtual bool isFinished() { return false;} }; Adafruit_DotStar strip(30, p11, p12); #endif