Simple example of Writing a Library https://developer.mbed.org/cookbook/Writing-a-Library
Diff: Flasher.h
- Revision:
- 0:a9e677a711b0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Flasher.h Thu Jan 07 09:07:26 2016 +0000 @@ -0,0 +1,15 @@ +#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