AirsoftTimer software based on mbed
Dependencies: mbed TextLCD keypad
board/Leds.h
- Committer:
- sillevl
- Date:
- 2017-02-09
- Revision:
- 27:f29805113454
- Parent:
- 11:50572814f73e
File content as of revision 27:f29805113454:
#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