Fandom

CHDK Wiki

UBASIC/Scripts: Fill-Flash Bracketing

< UBASIC

598pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Fill-Flash Bracketing Edit

Written for/on: Powershot A610
Also works on: (unknown at this time)

(Posted with author's permission, perhaps he'll be kind enough to show up one day and add-in some usage notes :-) )


Script Code (save as "brk-fillflash.bas" to your /CHDK/SCRIPTS/ folder)

rem Author - Harvester
rem Written for/on A610

@title fill flash bracket
@param a number of shots
@default a 4
@param b step size
@default b 3
@param c initial delay
@default c 2

if a<2 then let a=4
if b<1 then let b=3
if c<1 then let b=1

print "Please make sure that" 
print "flash=off"
print "func set menu on ISO"
print "slow sync=off"
sleep c*1000

gosub "slowsync"
click "set"
sleep 400
click "down"
sleep 400
click "down"
sleep 400
click "down"
sleep 400
click "down"
sleep 400
for i=1 to 12
  click "left"
  sleep 50
next i
sleep 400
click "set"

shoot
sleep 400
click "up"
sleep 400
click "up"
sleep 400
click "set"
sleep 400

for i=1 to a-1
  shoot
  sleep 400
  for s=1 to b
    click "right"
    sleep 400
  next s
next i
click "up"
sleep 400
click "up"
sleep 400
click "up"
sleep 400
click "up"
sleep 400
click "set"
sleep 400
click "up"
sleep 400
gosub "slowsync"
end

:slowsync 
  click "menu"
  sleep 400
  click "down"
  sleep 400
  click "down"
  sleep 400
  click "down"
  sleep 400 
  click "right"
  sleep 400
  click "menu"
  sleep 400
return

Also on Fandom

Random Wiki