2020-02-02 16:14:45 +00:00
|
|
|
#include "core/common.h"
|
|
|
|
#include "core/buttons.h"
|
|
|
|
#include "core/display.h"
|
2020-02-02 21:13:42 +00:00
|
|
|
#include <epaper/EPD.h>
|
2020-02-02 16:14:45 +00:00
|
|
|
#include "SettingsMenuMode.h"
|
|
|
|
|
|
|
|
static char* options[] = {
|
|
|
|
"[Back]",
|
|
|
|
"Reader Option X",
|
|
|
|
"Reader Option Y",
|
|
|
|
"Reader Option Z",
|
|
|
|
};
|
|
|
|
|
|
|
|
void SettingsMenuMode::start()
|
|
|
|
{
|
|
|
|
display_refresh();
|
|
|
|
}
|
|
|
|
|
|
|
|
void SettingsMenuMode::finish()
|
|
|
|
{}
|
|
|
|
|
|
|
|
char* SettingsMenuMode::getTitle()
|
|
|
|
{
|
|
|
|
return "Settings";
|
|
|
|
}
|
|
|
|
|
|
|
|
char** SettingsMenuMode::getOptions()
|
|
|
|
{
|
|
|
|
return options;
|
|
|
|
}
|
|
|
|
|
|
|
|
int SettingsMenuMode::getOptionsSize()
|
|
|
|
{
|
|
|
|
return 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
void SettingsMenuMode::onOptionSelected(int option)
|
|
|
|
{
|
|
|
|
switch (option) {
|
|
|
|
case 0:
|
2020-02-02 21:13:42 +00:00
|
|
|
this->setFinished();
|
2020-02-02 16:14:45 +00:00
|
|
|
return;
|
|
|
|
case 1:
|
|
|
|
// TODO
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
// TODO
|
|
|
|
break;
|
|
|
|
case 3:
|
2020-02-02 21:13:42 +00:00
|
|
|
// TODO
|
2020-02-02 16:14:45 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|