1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2002 by Robert E. Hak <rhak@ramapo.edu>
12 * Windows Copyright (C) 2002 by Felix Arends
13 * X11 Copyright (C) 2002 by Daniel Stenberg <daniel@haxx.se>
15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License
17 * as published by the Free Software Foundation; either version 2
18 * of the License, or (at your option) any later version.
20 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21 * KIND, either express or implied.
23 ****************************************************************************/
28 #ifdef HAVE_LCD_ENABLE
29 static bool lcd_enabled
= false;
32 static bool lcd_sleeping
= true;
35 void lcd_set_flip(bool yesno
)
40 void lcd_set_invert_display(bool invert
)
45 int lcd_default_contrast(void)
50 #ifdef HAVE_REMOTE_LCD
51 void lcd_remote_set_contrast(int val
)
55 void lcd_remote_backlight_on(int val
)
59 void lcd_remote_backlight_off(int val
)
64 void lcd_remote_set_flip(bool yesno
)
69 void lcd_remote_set_invert_display(bool invert
)
85 lcd_activation_call_hook();
90 #ifdef HAVE_LCD_ENABLE
91 void lcd_enable(bool on
)
93 if (on
&& !lcd_enabled
)
96 /* lcd_awake will handle the activation call */
99 lcd_activation_call_hook();
106 #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP)
107 bool lcd_active(void)
110 #ifdef HAVE_LCD_ENABLE
111 retval
= lcd_enabled
;
113 #ifdef HAVE_LCD_SLEEP
115 retval
= !lcd_sleeping
;