Simple example of Writing a Library https://developer.mbed.org/cookbook/Writing-a-Library

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Flasher.h Source File

Flasher.h

00001 #ifndef MBED_FLASHER_H
00002 #define MBED_FLASHER_H
00003  
00004 #include "mbed.h"
00005  
00006 class Flasher {
00007 public:
00008     Flasher(PinName pin);
00009     void flash(int n);
00010   
00011 private:  
00012     DigitalOut _pin;
00013 };
00014  
00015 #endif