Files
ESP_Project3_H26/include/pre_operational_state.h
T

37 lines
590 B
C++

#ifndef PRE_OPERATIONAL_STATE_H
#define PRE_OPERATIONAL_STATE_H
#include "state.h"
#include "stdint.h"
class PreOperationalState : public State
{
private:
unsigned long previous_time;
bool led_state;
//bool waiting_for_kp;
//bool waiting_for_ti;
enum InputMode
{
NONE,
ENTER_KP,
ENTER_TI
};
InputMode input_mode;
char input_buffer[16];
uint8_t input_index;
public:
PreOperationalState();
void enter() override;
void update() override;
void command(char c) override;
void exit() override;
};
#endif