Lua led blink not working as expected
Created originally on Bitbucket by garry23 (Garry George)
Here is the test code:
my_key = 0
function check_requests() if my_key == KEY.PLAY then -- blink test led_blink() -- 0nce msleep(5000) led_blink(5,200,200) msleep(5000) led_blink(10,200,200) end return true end
function test_key(k) my_key = k end
event.shoot_task = check_requests event.keypress = test_key
The error is that one only seems to get a single blink. Tested on EOSM and 5D3