Hello & welcome, color999 !
It seems there is a bug.
No
ubasic command set_prop 16, do not work.
#16 is the wrong propcase for your camera.
The A480 uses propset 2, so the flash can be controlled with propcase
143 on this camera !
--> http://chdk.wikia.com/wiki/PropertyCase#Digic_III_.26_Digic_IVHere's a little sample script, written by msl, published in the german forum (
[1]).
This script should work with all cameras using propset 1 or propset 2; propset 3 is not yet supported, but can be added easily when somebody add the propcase to the wikia table...
--[[
@title flash row sample
]]
function fastshoot()
press("shoot_half")
repeat
sleep(1)
until get_shooting() == true
press("shoot_full")
release("shoot_full")
release("shoot_half")
repeat
sleep(1)
until get_shooting() ~= true
end
function set_flash_mode(n)
if get_propset() == 2 then
set_prop(143,n)
else
set_prop(16,n)
end
end
flash_state = get_flash_mode()
set_flash_mode(2)
fastshoot()
set_flash_mode(1)
fastshoot()
set_flash_mode(flash_state)