29 lines
425 B
C++
29 lines
425 B
C++
#ifndef STOPPED_STATE_H
|
|
#define STOPPED_STATE_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "state.h"
|
|
|
|
class StoppedState : public State
|
|
{
|
|
private:
|
|
//unsigned long previous_time; // Used for blinking LED
|
|
int64_t previous_time;
|
|
bool led_state; // Ditto
|
|
|
|
public:
|
|
StoppedState();
|
|
|
|
void enter() override;
|
|
|
|
void update() override;
|
|
|
|
void command(char c) override;
|
|
|
|
void exit() override;
|
|
|
|
};
|
|
|
|
#endif
|