19 lines
304 B
C++
19 lines
304 B
C++
|
#include "StateUserUnknown.h"
|
||
|
#include "Globals.h"
|
||
|
#include "StateDefault.h"
|
||
|
|
||
|
|
||
|
void UserUnknownState::setup()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
void UserUnknownState::loop()
|
||
|
{
|
||
|
if (buttonA->pressed() || buttonB->pressed())
|
||
|
{
|
||
|
setCurrentState(new DefaultState());
|
||
|
}
|
||
|
|
||
|
char text[] = "Unknwn";
|
||
|
display->writeTextLeft(text);
|
||
|
}
|