SuperSensor.h 411 B

12345678910111213141516171819202122232425
  1. #ifndef _SUPER_SENSOR_H
  2. #define _SUPER_SENSOR_H
  3. #include "Arduino.h"
  4. #include <TaskSchedulerDeclarations.h>
  5. class SuperSensor {
  6. public:
  7. SuperSensor(int aPin);
  8. ~SuperSensor();
  9. void begin();
  10. void stop();
  11. long trigger();
  12. bool measurementReady();
  13. long value();
  14. private:
  15. long iDelay;
  16. long iValue;
  17. int iPin;
  18. unsigned long iStart;
  19. };
  20. #endif // _SUPER_SENSOR_H