ledtest.bas file:
@title LED test
sleep 2000
set_led 1,1
sleep 2000
set_led 1,0
set_led 3,1
sleep 2000
set_led 3,0
set_led 5,1
sleep 2000
set_led 5,0
set_led 7,1
sleep 2000
set_led 7,0
set_led 8,1
sleep 2000
set_led 8,0
set_led 9,1
sleep 2000
set_led 9,0
set_led 10,1
sleep 2000
set_led 10,0
end
———
RESULT:
*** STARTED ***
uBasic:1 Unk stmt
*** TERMINATED ***
———
Any ideas?
———
Btw: In normal mode (independently on CHDK), when you pull up the flash, the AF lamp is steadily on til you keep the shutter half-pressed. But once you start shooting/videorecording, it goes off. SAD.
EDIT:
It was the encoding. UTF-8 is not working in CHDK. ANSI is.
--[[
@title LED Test
@param m LED #
@default m 1
--]]
set_led(m,1)
worked. However, shooting while the AF lamp is on is still not possible.