joe carter
/
nitrocarproject
Embed:
(wiki syntax)
Show/hide line numbers
Counter.h
00001 #ifndef _COUNTER__H_ 00002 #define _COUNTER__H_ 00003 00004 #include "mbed.h" 00005 00006 class Counter { 00007 00008 public: 00009 Counter(PinName pin); 00010 void rising(void); 00011 int read(void); 00012 void reset(void); 00013 00014 private: 00015 InterruptIn _interrupt; 00016 volatile int _count; 00017 00018 }; 00019 00020 #endif
Generated on Wed Jul 13 2022 03:39:42 by 1.7.2