AirsoftTimer software based on mbed

Dependencies:   mbed TextLCD keypad

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Leds.h Source File

Leds.h

00001 #ifndef LEDS_H
00002 #define LEDS_H
00003 
00004 #include "mbed.h"
00005 
00006 struct LedPins{
00007     PinName left;
00008     PinName right;
00009 };
00010 
00011 
00012 
00013 class Leds{
00014     
00015     public:
00016     enum LedName {LEFT = 0, RIGHT = 1, ALL = 2};
00017     Leds(PinName leftPin, PinName rightPin);
00018     void on(Leds::LedName ledname);
00019     void off(Leds::LedName ledname);
00020     
00021     private: 
00022     DigitalOut leftLed;
00023     DigitalOut rightLed;
00024 };
00025 #endif