2022-02-10 00:45:08 +01:00
|
|
|
#ifndef Scenerunner_h
|
|
|
|
#define Scenerunner_h
|
|
|
|
|
|
|
|
#include "Arduino.h"
|
2022-02-10 14:53:35 +01:00
|
|
|
#include <LiquidCrystal.h>
|
2022-02-10 00:45:08 +01:00
|
|
|
|
|
|
|
class Scenerunner {
|
|
|
|
|
|
|
|
public:
|
|
|
|
// configuration values
|
|
|
|
int tSettle = 100;
|
|
|
|
int tFocus = 500;
|
|
|
|
int tShutter = 500;
|
|
|
|
bool bReturn = true;
|
|
|
|
bool bDarkenLcd = true;
|
|
|
|
|
|
|
|
// scene values
|
|
|
|
int nSteps = 10;
|
|
|
|
float distance = 0.5;
|
|
|
|
|
2022-02-10 14:53:35 +01:00
|
|
|
Scenerunner(LiquidCrystal *lcd);
|
2022-02-10 00:45:08 +01:00
|
|
|
void nextAction();
|
|
|
|
|
|
|
|
private:
|
2022-02-10 14:53:35 +01:00
|
|
|
LiquidCrystal *_lcd;
|
2022-02-10 00:45:08 +01:00
|
|
|
enum RunStep { RUN_OFF, RUN_SETTLE, RUN_FOCUS, RUN_SHUTTER, RUN_RETURN };
|
|
|
|
RunStep runStep = RUN_OFF;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|