Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of ele350 by
Diff: Led.h
- Revision:
- 0:b43794060b94
diff -r 000000000000 -r b43794060b94 Led.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Led.h Thu Oct 15 10:38:34 2015 +0000 @@ -0,0 +1,18 @@ +#ifndef LED_H // +#define LED_H + +#include "mbed.h" +#include <string> + +class Led { + private: + PinName pin; //private member object from embed.h + DigitalOut *l; //private member object from embed.h + + public: + Led(string s); //constructor or the class + void On(); //public member function + void Off(); //public member function +}; + +#endif /* LED_H */ \ No newline at end of file