buenzliai/main/statemachine.h

21 lines
365 B
C
Raw Normal View History

2024-05-17 13:04:36 +00:00
#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);
};