
An implementation of "BrickBreaker" for the mbed platform using the uLCD-4DGL display and a 5-Way joystick
Dependencies: 4DGL-uLCD-SE SDFileSystem mbed-rtos mbed wave_player
Nav_Switch.h
- Committer:
- nini1294
- Date:
- 2016-10-31
- Revision:
- 1:b20b76acf0ed
- Parent:
- 0:c9df12bcc92d
File content as of revision 1:b20b76acf0ed:
#include "mbed.h" class Nav_Switch { public: Nav_Switch(PinName up,PinName down,PinName left,PinName right,PinName fire); int read(); //boolean functions to test each switch bool up(); bool down(); bool left(); bool right(); bool fire(); //automatic read on RHS operator int (); //index to any switch array style bool operator[](int index) { return _pins[index]; }; private: BusIn _pins; };