Basic Led Library
Diff: LED.h
- Revision:
- 0:ccc1d1ad706f
diff -r 000000000000 -r ccc1d1ad706f LED.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LED.h Sat Feb 18 04:11:45 2017 +0000 @@ -0,0 +1,14 @@ +#ifndef __LED_H__ +#define __LED_H__ +#include "mbed.h" +class Led{ +private: + DigitalOut _pin; + bool state; +public: + Led(PinName pin); + void On(); + void Off(); + void Toggle(); +}; +#endif \ No newline at end of file