mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
driver/vfd.cpp: add buttons backlight control
This commit is contained in:
@@ -199,6 +199,16 @@ void CVFD::setled(int led1, int led2){
|
||||
}
|
||||
}
|
||||
|
||||
void CVFD::setBacklight(bool on_off)
|
||||
{
|
||||
f(cs_get_revision() != 9)
|
||||
return;
|
||||
|
||||
int led = on_off ? FP_LED_3_ON : FP_LED_3_OFF;
|
||||
if (ioctl(fd, IOC_FP_LED_CTRL, led) < 0)
|
||||
perror("FP_LED_3");
|
||||
}
|
||||
|
||||
void CVFD::setled(bool on_off)
|
||||
{
|
||||
if(g_settings.led_rec_mode == 0)
|
||||
|
@@ -106,6 +106,7 @@ class CVFD
|
||||
void setlcdparameter(void);
|
||||
void setled(void);
|
||||
void setled(bool on_off);
|
||||
void setBacklight(bool on_off);
|
||||
static CVFD* getInstance();
|
||||
void init(const char * fontfile, const char * fontname);
|
||||
|
||||
|
Reference in New Issue
Block a user