- lcd4l: add and use wrapper functions to handle /tmp/lcd/menu

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2021-09-18 21:52:01 +02:00
committed by Thilo Graf
parent da67aa4725
commit 019644334f
6 changed files with 26 additions and 11 deletions

View File

@@ -100,6 +100,8 @@ extern CPictureViewer *g_PicViewer;
#define START LCD_DATADIR "start"
#define END LCD_DATADIR "end"
#define MENU LCD_DATADIR "menu"
#define FONT LCD_DATADIR "font"
#define FGCOLOR LCD_DATADIR "fgcolor"
#define BGCOLOR LCD_DATADIR "bgcolor"
@@ -234,6 +236,16 @@ int CLCD4l::RemoveFile(const char *file)
return ret;
}
int CLCD4l::CreateMenuFile(std::string content, bool convert)
{
return CreateFile(MENU, content, convert);
}
int CLCD4l::RemoveMenuFile()
{
return RemoveFile(MENU);
}
int CLCD4l::GetMaxBrightness()
{
int max_brightness;