A retro gaming programme, designed for use on a portable embedded system. Incorporates power saving techniques.
Dependencies: ConfigFile N5110 PowerControl beep mbed
Diff: tower.h
- Revision:
- 54:8180eec1656d
- Parent:
- 53:a3077af736bb
- Child:
- 55:bb4f6cc196c8
--- a/tower.h Thu Apr 30 19:59:54 2015 +0000 +++ b/tower.h Fri May 01 22:07:05 2015 +0000 @@ -1,13 +1,17 @@ //change this to alter tolerance of joystick direction #define DIRECTION_TOLERANCE 0.05 +#include "ConfigFile.h" -#include <string> -#include "mbed.h" +LocalFileSystem local("local"); +ConfigFile cfg; //VCC,SCE,RST,D/C,MOSI,SCLK,LED - set pins for LCD N5110 lcd(p7,p8,p9,p10,p11,p13,p22); + +Serial serial(USBTX, USBRX); + //timers to check state of buttons Ticker timerA;//for buttonA Ticker timerB;//for buttonB