Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Potentiometer.h
00001 #ifndef POTENTIOMETER_H 00002 #define POTENTIOMETER_H 00003 #include "mbed.h" 00004 #include "AbstractReporter.h" 00005 00006 00007 class Potentiometer: public AbstractReporter 00008 { 00009 public: 00010 Potentiometer(): timer() { 00011 oldValues[0] = 0; 00012 oldValues[1] = 0; 00013 timer.start(); 00014 } 00015 virtual ~Potentiometer() {} 00016 virtual bool init() { return true; } 00017 virtual const char* name() const { return "Poti"; } 00018 virtual int read(char*, size_t, char*, size_t); 00019 private: 00020 float oldValues[2]; 00021 Timer timer; 00022 }; 00023 00024 #endif /* POTENTIOMETER_H */
Generated on Sat Jul 16 2022 07:10:59 by 1.7.2