1st mbed library built - mbed Flasher
Flasher.h@0:446c73b5555a, 2011-07-13 (annotated)
- Committer:
- tothbuiaelliott
- Date:
- Wed Jul 13 13:59:05 2011 +0000
- Revision:
- 0:446c73b5555a
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tothbuiaelliott | 0:446c73b5555a | 1 | #ifndef MBED_FLASHER_H |
tothbuiaelliott | 0:446c73b5555a | 2 | #define MBED_FLASHER_H |
tothbuiaelliott | 0:446c73b5555a | 3 | |
tothbuiaelliott | 0:446c73b5555a | 4 | #include "mbed.h" |
tothbuiaelliott | 0:446c73b5555a | 5 | |
tothbuiaelliott | 0:446c73b5555a | 6 | class Flasher { |
tothbuiaelliott | 0:446c73b5555a | 7 | public: |
tothbuiaelliott | 0:446c73b5555a | 8 | Flasher(PinName pin); |
tothbuiaelliott | 0:446c73b5555a | 9 | void flash(int n); |
tothbuiaelliott | 0:446c73b5555a | 10 | |
tothbuiaelliott | 0:446c73b5555a | 11 | private: |
tothbuiaelliott | 0:446c73b5555a | 12 | DigitalOut _pin; |
tothbuiaelliott | 0:446c73b5555a | 13 | |
tothbuiaelliott | 0:446c73b5555a | 14 | }; |
tothbuiaelliott | 0:446c73b5555a | 15 | |
tothbuiaelliott | 0:446c73b5555a | 16 | #endif |