Philip Walne
/
335_project
Dotstar LED demonstration, with stacker game. Uses 2 buttons, and LPC1768 microcontroller
Diff: light_game.h
- Revision:
- 0:9ab173ff6353
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/light_game.h Wed Jan 04 20:53:49 2017 +0000 @@ -0,0 +1,26 @@ +/** +* 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 \ No newline at end of file