AirsoftTimer software based on mbed
Dependencies: mbed TextLCD keypad
board/Leds.h
- Committer:
- sillevl
- Date:
- 2014-12-31
- Revision:
- 11:50572814f73e
- Parent:
- 5:be598835bab0
File content as of revision 11:50572814f73e:
#ifndef LEDS_H #define LEDS_H #include "mbed.h" struct LedPins{ PinName left; PinName right; }; class Leds{ public: enum LedName {LEFT = 0, RIGHT = 1, ALL = 2}; Leds(PinName leftPin, PinName rightPin); void on(Leds::LedName ledname); void off(Leds::LedName ledname); private: DigitalOut leftLed; DigitalOut rightLed; }; #endif