Chetan patil
/
flasher
LED blink
flasher.h@0:02489f35e512, 2015-11-24 (annotated)
- Committer:
- chetanpatil
- Date:
- Tue Nov 24 05:19:22 2015 +0000
- Revision:
- 0:02489f35e512
LED blink;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
chetanpatil | 0:02489f35e512 | 1 | #ifndef MBED_FLASHER_H |
chetanpatil | 0:02489f35e512 | 2 | #define MBED_FLASHER_H |
chetanpatil | 0:02489f35e512 | 3 | |
chetanpatil | 0:02489f35e512 | 4 | #include "mbed.h" |
chetanpatil | 0:02489f35e512 | 5 | |
chetanpatil | 0:02489f35e512 | 6 | class Flasher { |
chetanpatil | 0:02489f35e512 | 7 | public: |
chetanpatil | 0:02489f35e512 | 8 | Flasher(PinName pin); |
chetanpatil | 0:02489f35e512 | 9 | void flash(int n); |
chetanpatil | 0:02489f35e512 | 10 | |
chetanpatil | 0:02489f35e512 | 11 | private: |
chetanpatil | 0:02489f35e512 | 12 | DigitalOut _pin; |
chetanpatil | 0:02489f35e512 | 13 | }; |
chetanpatil | 0:02489f35e512 | 14 | |
chetanpatil | 0:02489f35e512 | 15 | #endif |