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.
indicator.h@2:ff5abf6d887c, 2016-11-22 (annotated)
- Committer:
- YTvW
- Date:
- Tue Nov 22 10:59:11 2016 +0000
- Revision:
- 2:ff5abf6d887c
- Child:
- 3:11ab070a3edb
aanmaak indicator.h
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| YTvW | 2:ff5abf6d887c | 1 | #ifndef MBED_INDICATOR_H |
| YTvW | 2:ff5abf6d887c | 2 | #define MBED_INDICATOR_H |
| YTvW | 2:ff5abf6d887c | 3 | #include "mbed.h" |
| YTvW | 2:ff5abf6d887c | 4 | |
| YTvW | 2:ff5abf6d887c | 5 | |
| YTvW | 2:ff5abf6d887c | 6 | class Indicator |
| YTvW | 2:ff5abf6d887c | 7 | { |
| YTvW | 2:ff5abf6d887c | 8 | public: |
| YTvW | 2:ff5abf6d887c | 9 | Indicator(PinName pin); |
| YTvW | 2:ff5abf6d887c | 10 | void indicator_thread(); |
| YTvW | 2:ff5abf6d887c | 11 | private: |
| YTvW | 2:ff5abf6d887c | 12 | int situation; |
| YTvW | 2:ff5abf6d887c | 13 | int ledstatus; |
| YTvW | 2:ff5abf6d887c | 14 | DigitalOut _pin; |
| YTvW | 2:ff5abf6d887c | 15 | void SetSituation(); |
| YTvW | 2:ff5abf6d887c | 16 | void Status(int situation); |
| YTvW | 2:ff5abf6d887c | 17 | void SlowFlash(int situation,int ledstatus); |
| YTvW | 2:ff5abf6d887c | 18 | void FastFlash(int situation,int ledstatus); |
| YTvW | 2:ff5abf6d887c | 19 | |
| YTvW | 2:ff5abf6d887c | 20 | |
| YTvW | 2:ff5abf6d887c | 21 | |
| YTvW | 2:ff5abf6d887c | 22 | }; |
| YTvW | 2:ff5abf6d887c | 23 | #endif |