TAKT 平林 / SwitchBaseClass
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SwitchBaseClass.h Source File

SwitchBaseClass.h

00001 #ifndef MBED_SWITCHBASE
00002 #define MBED_SWITCHBASE
00003  
00004 #include "mbed.h"
00005  
00006 class SwitchBaseClass {
00007 public:
00008     SwitchBaseClass(PinName pin);
00009     int On(void);
00010     int Off(void);
00011     int On_Off(void);
00012   
00013 private:  
00014     DigitalIn _pin;
00015 };
00016  
00017 #endif
00018