buenzliai/main/statemachine.h
2024-05-17 15:04:36 +02:00

20 lines
365 B
C++

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