5.7 Example scripts
171
-- Program definition
labels = {"Parameters",
"
Lightning", "Fast",
"Small Objects", "
Macro",
"
Hat"
-- add additional labels here
}
programs = {
function() --Parameters
end,
function() --Lightning
a,b,c,d, e,f, i,o,p,t,z
= 4,4,1,55,1,10,0,6,0,2,1
if u == 0 then u = -1 end
end,
function() --Fast
a,b,c,d, e,f, i,j,k,l,m,o,p,t,z
= 6,4,1,30,1,-5,1,2,2,5,3,6,1,5,2
if u == 0 then u = -1 end
end,
function() --Small Objects
a, b, c,d, e, f, i,j,k,l,m,o,p,t,z
= 12,12,1,55,50,-1,1,2,2,11,11,1,
1,5,2
if u < 0 then u = 0 end
end,
function() –Macro
a,b,c,d, e, f, i,j,k,l,m,o,p,t,z
= 5,5,3,55,10,-1,1,3,3,3,3,6,1,5,2
if u == 0 then u = -1 end
end,
function() --Hat
a,b,c,d, e, f, i,o, p,t,z
= 1,1,1,55,10,24,0,12,5,5,0
if u < 0 then u = 0 end
if v < 1 then v = 5 end
pause(v)
end
--[[add additional program implementations here]]
}
After we have populated the two tables with labels and functions, we can
now allow the user to select one of them. The number of the scene pro-
gram is stored in the variable
program
. The currently selected program label
Содержание Camera
Страница 1: ......
Страница 2: ...The Canon Camera Hackers Manual ...
Страница 3: ......
Страница 4: ...Berthold Daum The Canon Camera Hackers Manual Teach Your Camera New Tricks ...
Страница 19: ...10 CH APTER 2 Cameras and Operating Systems ...
Страница 25: ...16 CH APTER 3 ...
Страница 85: ...76 CH APTER 4 Teach Your Camera New Tricks ...
Страница 213: ...204 CH APTER 6 ...
Страница 253: ...244 AP PENDIX ...