1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #pragma once
- #if defined(ARDUINO) && ARDUINO >= 100
- #include <Arduino.h>
- #else
- #include <WProgram.h>
- #endif
- #include "singleton.h"
- class Speedometer : public Singleton<Speedometer> {
- public:
- void attachToDisplay();
- void incrementHallCounter();
- private:
- Speedometer();
- friend class Singleton;
-
- byte mMomentSpeed;
- unsigned long mLastHallTime;
- byte mHallCounter;
- };
|