Show
Ignore:
Timestamp:
01/15/09 21:57:34 (4 years ago)
Author:
phyrephox
Message:

+ added two small functions... TurnOnBackLight? & TurnOffBackLight?, which turn on and off the LCD Backlight (or EVF backlight) - useful for energy saving or camouflage missions :D
also added ubasic and lua commands: set_backlight(x), whereas 0 disables Backlight and 1 enables it. mind you, after a shot the display is turned on again (probably loop set_backlight_statement(0) in script!?).
an example script can be found here:  http://chdk.setepontos.com/index.php/topic,2744.msg27703.html#msg27703
todo: PERHAPS make it that you can disable (automatically after a given time?) LCD directly in CHDK, also on todo list: Dimming the light

thx to fudgey, ewavr & Dataghost, who made that happen \o/ (see  https://chdk.kernreaktor.org/mantis/view.php?id=65 for links)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/include/platform.h

    r626 r679  
    466466void ExitFromCompensationEVF(void); 
    467467 
     468void TurnOnBackLight(void); 
     469void TurnOffBackLight(void); 
     470 
    468471void wait_until_remote_button_is_released(void); 
    469472short shooting_get_ev_correction1();