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.
Led/Led.h@0:f37ec9490923, 2015-10-22 (annotated)
- Committer:
- Toary
- Date:
- Thu Oct 22 10:46:46 2015 +0000
- Revision:
- 0:f37ec9490923
created my library
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Toary | 0:f37ec9490923 | 1 | #ifndef LED_H |
| Toary | 0:f37ec9490923 | 2 | #define LED_h |
| Toary | 0:f37ec9490923 | 3 | |
| Toary | 0:f37ec9490923 | 4 | #include "mbed.h" |
| Toary | 0:f37ec9490923 | 5 | #include <string> |
| Toary | 0:f37ec9490923 | 6 | |
| Toary | 0:f37ec9490923 | 7 | class Led |
| Toary | 0:f37ec9490923 | 8 | { |
| Toary | 0:f37ec9490923 | 9 | private: |
| Toary | 0:f37ec9490923 | 10 | PinName pin; |
| Toary | 0:f37ec9490923 | 11 | DigitalOut *l; |
| Toary | 0:f37ec9490923 | 12 | |
| Toary | 0:f37ec9490923 | 13 | public: |
| Toary | 0:f37ec9490923 | 14 | Led(string s); |
| Toary | 0:f37ec9490923 | 15 | void On(); |
| Toary | 0:f37ec9490923 | 16 | void Off(); |
| Toary | 0:f37ec9490923 | 17 | }; |
| Toary | 0:f37ec9490923 | 18 | |
| Toary | 0:f37ec9490923 | 19 | #endif |