satbir panesar / Mbed 2 deprecated elec350

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Led.h Source File

Led.h

00001 #ifndef _LED_H_
00002 #define _LED_H_
00003 #include "mbed.h"
00004 
00005 class Led
00006 {
00007     public:
00008     Led(PinName pinName);
00009     void switchOn();
00010     void switchOff();
00011     void flash(float time);
00012     private:
00013     DigitalOut pin;
00014     };
00015     #endif