A very simple example of a library to flash a DigitalOut, used to demonstrate how to write a library
Diff: Flasher.h
- Revision:
- 1:95c61fdf5872
- Parent:
- 0:6ae07812d2bb
--- a/Flasher.h Tue May 18 20:08:32 2010 +0000 +++ b/Flasher.h Fri Sep 03 11:16:09 2010 +0000 @@ -1,15 +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 +#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