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.
blink.h@1:7a062c1b79dd, 2016-11-11 (annotated)
- Committer:
- 2bv14ei014
- Date:
- Fri Nov 11 06:41:04 2016 +0000
- Revision:
- 1:7a062c1b79dd
- Parent:
- 0:d1d2410ad028
BLINK LEDS
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| 2bv14ei014 | 0:d1d2410ad028 | 1 | #ifndef MBED_BLINKER_H |
| 2bv14ei014 | 0:d1d2410ad028 | 2 | #define MBED_BLINKER_H |
| 2bv14ei014 | 0:d1d2410ad028 | 3 | |
| 2bv14ei014 | 0:d1d2410ad028 | 4 | #include "mbed.h" |
| 2bv14ei014 | 0:d1d2410ad028 | 5 | |
| 2bv14ei014 | 0:d1d2410ad028 | 6 | class Blinker { |
| 2bv14ei014 | 0:d1d2410ad028 | 7 | public: |
| 2bv14ei014 | 0:d1d2410ad028 | 8 | Blinker (PinName pin); |
| 2bv14ei014 | 0:d1d2410ad028 | 9 | void Blink(int n); |
| 2bv14ei014 | 0:d1d2410ad028 | 10 | |
| 2bv14ei014 | 0:d1d2410ad028 | 11 | private: |
| 2bv14ei014 | 0:d1d2410ad028 | 12 | DigitalOut LED1,LED2; |
| 2bv14ei014 | 0:d1d2410ad028 | 13 | }; |
| 2bv14ei014 | 0:d1d2410ad028 | 14 | |
| 2bv14ei014 | 0:d1d2410ad028 | 15 | #endif |