Practice at preparing library https://developer-sjc-cyan-border.mbed.org/cookbook/Writing-a-Library
Diff: Flasher.h
- Revision:
- 0:15ab39b909c6
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Flasher.h Fri Jun 15 21:49:46 2018 +0000 @@ -0,0 +1,16 @@ + +#ifndef MBED_FLASHER_H +#define MBED_FLASHER_H + +#include "mbed.h" + +class Flasher { +public: + Flasher(PinName pin); + void flash(int n); + +private: + DigitalOut _pin; +}; + +#endif \ No newline at end of file