A very simple example of a library to flash a DigitalOut, used to demonstrate how to write a library
Flasher.h@1:95c61fdf5872, 2010-09-03 (annotated)
- Committer:
- simon
- Date:
- Fri Sep 03 11:16:09 2010 +0000
- Revision:
- 1:95c61fdf5872
- Parent:
- 0:6ae07812d2bb
First version as a library, without documentation
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
simon | 1:95c61fdf5872 | 1 | #ifndef MBED_FLASHER_H |
simon | 1:95c61fdf5872 | 2 | #define MBED_FLASHER_H |
simon | 1:95c61fdf5872 | 3 | |
simon | 1:95c61fdf5872 | 4 | #include "mbed.h" |
simon | 1:95c61fdf5872 | 5 | |
simon | 1:95c61fdf5872 | 6 | class Flasher { |
simon | 1:95c61fdf5872 | 7 | public: |
simon | 1:95c61fdf5872 | 8 | Flasher(PinName pin); |
simon | 1:95c61fdf5872 | 9 | void flash(int n); |
simon | 1:95c61fdf5872 | 10 | |
simon | 1:95c61fdf5872 | 11 | private: |
simon | 1:95c61fdf5872 | 12 | DigitalOut _pin; |
simon | 1:95c61fdf5872 | 13 | }; |
simon | 1:95c61fdf5872 | 14 | |
simon | 1:95c61fdf5872 | 15 | #endif |