From 8543b0f9df2e527cb242d0629d5b5574c0d76d30 Mon Sep 17 00:00:00 2001 From: Marc Sunet Date: Thu, 1 Dec 2022 10:38:12 -0800 Subject: Move arduino program to rpmcount folder and rename cc files to cpp as the IDE expects. --- arduino/Counter.h | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100755 arduino/Counter.h (limited to 'arduino/Counter.h') diff --git a/arduino/Counter.h b/arduino/Counter.h deleted file mode 100755 index f832023..0000000 --- a/arduino/Counter.h +++ /dev/null @@ -1,45 +0,0 @@ -#pragma once - -class Counter -{ -public: - - enum State - { - READY, - WAITING_FOR_TIMEOUT, - COUNTING, - SIGNALING - }; - -public: - - void init (unsigned long startDelay, unsigned long rpmCount, unsigned long signalsPerRPM); - - void setStartDelay (unsigned long); - - void setRPMCount (unsigned long); - - void setSignalsPerRPM (unsigned long); - - void start (unsigned long startTime); - - void reset (); - - void update (unsigned long time, int rpmSignal); - - State getState () const; - -private: - - State state; - - unsigned long startDelay; - unsigned long rpmCount; - unsigned long signalsPerRPM; - unsigned long startTime; - - unsigned long signals; - - bool lastRpmSignal; -}; -- cgit v1.2.3