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

Origin commit data
------------------
Branch: ni/coolstream
Commit: e2cf2d835a
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-09-18 (Sat, 18 Sep 2021)

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

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2021-09-18 21:52:01 +02:00
parent 6459313cb9
commit 0c7df3fa96
6 changed files with 26 additions and 11 deletions

View File

@@ -99,6 +99,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"
@@ -235,6 +237,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;