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.
Flasher.h@0:191a45ca97d4, 2022-11-05 (annotated)
- Committer:
- dpavetic
- Date:
- Sat Nov 05 08:20:55 2022 +0000
- Revision:
- 0:191a45ca97d4
initial commit
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| dpavetic | 0:191a45ca97d4 | 1 | #ifndef MBED_FLASHER_H |
| dpavetic | 0:191a45ca97d4 | 2 | #define MBED_FLASHER_H |
| dpavetic | 0:191a45ca97d4 | 3 | |
| dpavetic | 0:191a45ca97d4 | 4 | #include "mbed.h" |
| dpavetic | 0:191a45ca97d4 | 5 | |
| dpavetic | 0:191a45ca97d4 | 6 | class Flasher |
| dpavetic | 0:191a45ca97d4 | 7 | { |
| dpavetic | 0:191a45ca97d4 | 8 | public: |
| dpavetic | 0:191a45ca97d4 | 9 | Flasher(PinName pin); |
| dpavetic | 0:191a45ca97d4 | 10 | void flash(int n); |
| dpavetic | 0:191a45ca97d4 | 11 | |
| dpavetic | 0:191a45ca97d4 | 12 | private: |
| dpavetic | 0:191a45ca97d4 | 13 | DigitalOut _pin; |
| dpavetic | 0:191a45ca97d4 | 14 | }; |
| dpavetic | 0:191a45ca97d4 | 15 | |
| dpavetic | 0:191a45ca97d4 | 16 | #endif |