asha pawar
/
HelloWorld
my own library
Fork of HelloWorld by
Flasher.h@2:d42b0e3fe08a, 2015-11-25 (annotated)
- Committer:
- ashapawar
- Date:
- Wed Nov 25 09:46:48 2015 +0000
- Revision:
- 2:d42b0e3fe08a
files
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ashapawar | 2:d42b0e3fe08a | 1 | #ifndef MBED_FLASHER_H |
ashapawar | 2:d42b0e3fe08a | 2 | #define MBED_FLASHER_H |
ashapawar | 2:d42b0e3fe08a | 3 | |
ashapawar | 2:d42b0e3fe08a | 4 | #include "mbed.h" |
ashapawar | 2:d42b0e3fe08a | 5 | |
ashapawar | 2:d42b0e3fe08a | 6 | class Flasher { |
ashapawar | 2:d42b0e3fe08a | 7 | public: |
ashapawar | 2:d42b0e3fe08a | 8 | Flasher(PinName pin); |
ashapawar | 2:d42b0e3fe08a | 9 | void flash(int n); |
ashapawar | 2:d42b0e3fe08a | 10 | |
ashapawar | 2:d42b0e3fe08a | 11 | private: |
ashapawar | 2:d42b0e3fe08a | 12 | DigitalOut _pin; |
ashapawar | 2:d42b0e3fe08a | 13 | }; |
ashapawar | 2:d42b0e3fe08a | 14 | |
ashapawar | 2:d42b0e3fe08a | 15 | #endif |