mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
spark: use LED display for time and volume
This is a first draft of code to display time and
volume percent on the 4 digit display on spark boxes.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 9ab80482fa
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-03-28 (Wed, 28 Mar 2012)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -28,10 +28,6 @@
|
||||
#ifndef __lcdd__
|
||||
#define __lcdd__
|
||||
|
||||
#ifndef LCD_UPDATE
|
||||
#define LCD_UPDATE 1
|
||||
#endif
|
||||
|
||||
#define LCDDIR_VAR "/var/share/tuxbox/neutrino/lcdd"
|
||||
|
||||
typedef enum
|
||||
@@ -83,14 +79,13 @@ typedef enum
|
||||
#include <configfile.h>
|
||||
#include <pthread.h>
|
||||
|
||||
#if HAVE_SPARK_HARDWARE
|
||||
#define HAVE_GENERIC_HARDWARE 1
|
||||
#endif
|
||||
#ifndef HAVE_SPARK_HARDWARE
|
||||
#include <lcddisplay/fontrenderer.h>
|
||||
|
||||
|
||||
class CLCDPainter;
|
||||
class LcdFontRenderClass;
|
||||
#endif
|
||||
class CLCD
|
||||
{
|
||||
public:
|
||||
@@ -122,7 +117,7 @@ class CLCD
|
||||
|
||||
|
||||
private:
|
||||
|
||||
#ifndef HAVE_SPARK_HARDWARE
|
||||
class FontsDef
|
||||
{
|
||||
public:
|
||||
@@ -170,7 +165,14 @@ class CLCD
|
||||
void setlcdparameter(int dimm, int contrast, int power, int inverse, int bias);
|
||||
void displayUpdate();
|
||||
void showTextScreen(const std::string & big, const std::string & small, int showmode, bool perform_wakeup, bool centered = false);
|
||||
|
||||
#else
|
||||
CLCD();
|
||||
std::string menutitle;
|
||||
MODES mode;
|
||||
void setled(int red, int green);
|
||||
static void *TimeThread(void *);
|
||||
pthread_t thrTime;
|
||||
#endif
|
||||
public:
|
||||
bool has_lcd;
|
||||
void wake_up();
|
||||
|
Reference in New Issue
Block a user