buenzliai/main/statemachine.h
2024-05-17 15:37:03 +02:00

22 lines
428 B
C++

#pragma once
#include <Arduino.h>
#include <LiquidCrystal.h>
#include "state.h"
#include "station.h"
#include "context.h"
class StateMachine {
private:
State* currentState;
void updateState(State* newState);
public:
StateMachine(State* initialState);
~StateMachine();
void pickedUp();
void putDown(Station* newSation);
void update(Context context);
void updateDisplay(LiquidCrystal* lcd);
};