I am using the following lua code to make two functions one takes video the other takes picture
I am new to lua and cant seem to tell what I have done wrong
Any help would be appreciated:
capturemode=require("capmode")
function takevid ()
capturemode.set ("VIDEO_STD")
press("shoot_full")
sleep(500)
release("shoot_full")
print("exiting video")
press("shoot_full")
sleep(500)
release("shoot_full")
--press ("video")
--sleep (l)
--release ("video")
end
function takephoto(s)
capturemode.set ("P")
for r=0,s,1 do
shoot()
print ("shot")
end
end
takevid (60)
takephoto (2)
--shoot ()