satbir panesar
/
elec350
my library for elec350
Diff: Led.h
- Revision:
- 1:8cd3ad6ab5f3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Led.h Thu Oct 06 09:40:57 2016 +0000 @@ -0,0 +1,15 @@ +#ifndef _LED_H_ +#define _LED_H_ +#include "mbed.h" + +class Led +{ + public: + Led(PinName pinName); + void switchOn(); + void switchOff(); + void flash(float time); + private: + DigitalOut pin; + }; + #endif \ No newline at end of file