add hd51; mostly ported from TangoCash's neutrino-mp

Origin commit data
------------------
Branch: ni/coolstream
Commit: 6fe5d269af
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-10-05 (Thu, 05 Oct 2017)

Origin message was:
------------------
- add hd51; mostly ported from TangoCash's neutrino-mp

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

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-10-05 12:52:53 +02:00
committed by Thilo Graf
parent 809cbf7a4c
commit 6bca93d258
30 changed files with 2528 additions and 227 deletions

View File

@@ -82,6 +82,7 @@ class CVFD
MODES mode;
std::string servicename;
char *scrollstr;
int service_number;
bool support_text;
bool support_numbers;
@@ -90,13 +91,17 @@ class CVFD
bool muted;
bool showclock;
pthread_t thrTime;
#if HAVE_DUCKBOX_HARDWARE
pthread_t thread_start_loop;
#endif
int last_toggle_state_power;
bool clearClock;
unsigned int timeout_cnt;
unsigned int switch_name_time_cnt;
unsigned int switch_name_time_cnt;
int fd;
int brightness;
std::string text;
char g_str[64];
void count_down();
@@ -104,23 +109,29 @@ class CVFD
static void* TimeThread(void*);
void setlcdparameter(int dimm, int power);
#if !HAVE_DUCKBOX_HARDWARE
void setled(int led1, int led2);
#endif
public:
~CVFD();
bool has_lcd;
bool has_led_segment;
void setlcdparameter(void);
#if !HAVE_DUCKBOX_HARDWARE
void setled(void);
void setled(bool on_off);
void setBacklight(bool on_off);
#else
void setBacklight(bool /*on_off*/) { };
#endif
static CVFD* getInstance();
void init(const char * fontfile, const char * fontname);
void setMode(const MODES m, const char * const title = "");
void showServicename(const std::string & name, int number = -1); // UTF-8
void setEPGTitle(const std::string) { return; };
void setEPGTitle(const std::string) { return; }
void showTime(bool force = false);
/** blocks for duration seconds */
void showRCLock(int duration = 2);
@@ -154,10 +165,18 @@ class CVFD
void Unlock();
void Clear();
void ShowIcon(fp_icon icon, bool show);
#if HAVE_DUCKBOX_HARDWARE
void repaintIcons();
void UpdateIcons();
void ShowScrollText(char * str);
static void* ThreadScrollText(void * arg);
void ClearIcons();
#endif
void ShowText(const char *str);
void ShowNumber(int number);
void wake_up();
MODES getMode(void) { return mode; };
std::string getServicename(void) { return servicename; }
#ifdef LCD_UPDATE
private:
CFileList* m_fileList;