29 lines
408 B
C++
29 lines
408 B
C++
#ifndef STOPPED_STATE_H
|
|
#define STOPPED_STATE_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "state.h"
|
|
|
|
class StoppedState : public State
|
|
{
|
|
private:
|
|
int64_t previous_time;
|
|
bool led_state;
|
|
|
|
public:
|
|
StoppedState();
|
|
|
|
void enter() override;
|
|
|
|
void update() override;
|
|
|
|
void command(char c) override;
|
|
|
|
void exit() override;
|
|
|
|
NodeState id() const override { return NodeState::STOPPED; }
|
|
};
|
|
|
|
#endif
|