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.
Diff: led.h
- Revision:
- 0:4e434d6edc1e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/led.h Thu Feb 02 10:21:42 2012 +0000 @@ -0,0 +1,37 @@ +#ifndef MBED_LED_H +#define MBED_LED_H + +#include "mbed.h" + +/** LED class + * + * Example: + * @code + * + * + * @encode + */ + +class LED{ +public: +/** Create led object + * + * @param pin LE Pin + */ + LED(PinName pin); + +/** LED ON + * return void + */ +void ON(); + +/** LED OFF **/ +void OFF(); + +/** LED SWAP **/ +void SWAP(); +private: + DigitalOut _pin; +}; + +#endif