2020-01-31 09:36:36 +00:00
|
|
|
#ifndef __screen_move_overcurrent
|
|
|
|
#define __screen_move_overcurrent
|
|
|
|
|
2020-02-01 15:55:33 +00:00
|
|
|
#include "include/screenids.h"
|
2020-01-31 09:36:36 +00:00
|
|
|
#include "../screen.h"
|
2020-01-31 15:50:19 +00:00
|
|
|
#include "../Control.h"
|
2020-01-31 09:36:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Move overcurrent screen
|
|
|
|
* Displays a warning that the motor driver has reached the set maximum current.
|
|
|
|
*/
|
2020-02-01 15:55:33 +00:00
|
|
|
class MoveOvercurrentScreen : public BaseScreen
|
2020-01-31 09:36:36 +00:00
|
|
|
{
|
|
|
|
public:
|
2020-02-01 15:55:33 +00:00
|
|
|
MoveOvercurrentScreen(ScreenManager* screenManager, Adafruit_GFX* display) : BaseScreen(screenManager, display) { }
|
2020-01-31 09:36:36 +00:00
|
|
|
|
|
|
|
void onShow();
|
|
|
|
void onButton(Button button);
|
|
|
|
void onTick();
|
|
|
|
|
2020-02-01 15:55:33 +00:00
|
|
|
ScreenId screenId() { return ScreenId::MoveOvercurrent; };
|
|
|
|
|
2020-01-31 09:36:36 +00:00
|
|
|
private:
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|