My favorites | Sign in
Project Home Issues Source
Repository:
Checkout   Browse   Changes   Clones    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--[[
@title My Intervalometer
@param a Shooting interval, min
@default a 0
@param b ...sec
@default b 3
--]]

interval = a * 60000 + b * 1000

function TakePicture()
print "Taking picture"
press "shoot_half"
press "shoot_full"
release "shoot_full"

sleep(500)
print "Done waiting"
end

repeat
start_tick = get_tick_count()
TakePicture()
print "Sleeping"
sleep(interval - (get_tick_count() - start_tick))
print "Looping"
until false

Change log

15a6ca8638e2 by scottkir...@asta-laptop on Oct 10, 2009   Diff
Added interval.lua (one that works!)
Updated myshutter and CanonRemoteTrigger.
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 459 bytes, 27 lines
Powered by Google Project Hosting