mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- simple_display: allow to set scroll mode
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -579,6 +579,25 @@ int CLCD::getBrightnessStandby()
|
||||
return 0;
|
||||
}
|
||||
|
||||
void CLCD::setScrollMode(int scroll)
|
||||
{
|
||||
printf("CLCD::%s scroll:%d\n", __func__, scroll);
|
||||
if (scroll)
|
||||
{
|
||||
proc_put("/proc/stb/lcd/initial_scroll_delay", "1000", 4);
|
||||
proc_put("/proc/stb/lcd/final_scroll_delay", "1000", 4);
|
||||
proc_put("/proc/stb/lcd/scroll_delay", "150", 3);
|
||||
proc_put("/proc/stb/lcd/scroll_repeats", "3", 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
proc_put("/proc/stb/lcd/initial_scroll_delay", "0", 1);
|
||||
proc_put("/proc/stb/lcd/final_scroll_delay", "0", 1);
|
||||
proc_put("/proc/stb/lcd/scroll_delay", "0", 1);
|
||||
proc_put("/proc/stb/lcd/scroll_repeats", "0", 1);
|
||||
}
|
||||
}
|
||||
|
||||
void CLCD::setPower(int)
|
||||
{
|
||||
}
|
||||
|
Reference in New Issue
Block a user