Posts Tagged ‘CHDK’

Nieuw fotoscript (CHDK)

Saturday, April 11th, 2009

Het volgende fotoscript heeft het voordeel dat de interval tussen de shoots precies x aantal seconden is, het vorige script nam de delay van het fotoschieten niet mee. Verder zet dit script het display uit zodat we zo min mogelijk energie verspillen

@title KAP vpiorno 3.3
@param a Interval (Secs)
@default a 10
@param b Secs until 1st shoot
@default b 20
@param c Turn off display (0=no, 1=yes)
@default c 1

t=get_tick_count
if a<10 then a=10
d=a*1000
if b<15 then b=15
s=t+((b-(15/10))*1000)

rem Blue LED blinking to check if script is running
for x=1 to 8
set_led 9 1
sleep 50
set_led 9 0
sleep 50
next x

rem Turning off LCD display
get_prop 105 e
if c<>0 & e<>2 then
for n=0 to (2-e)
click "display"
next n
endif

goto "shoot"

:shoot
if get_tick_count<s then goto "shoot"
s=s+d
shoot
goto "shoot"

end

meer informatie over het gebruik van chdk : http://hackaday.com/2008/05/27/how-to-expand-your-camera-with-chdk/