Commit 82c45ca8 authored by Administrator's avatar Administrator

Changement incrément en ms

parent a2ba5cbd
......@@ -15,7 +15,7 @@ import sys, getopt
screen = "on"
rotary = "on"
increment = 0.002
increment = 2
delai = 0
def main(argv):
......@@ -26,18 +26,18 @@ def main(argv):
try:
opts, args = getopt.getopt(argv,"hs:r:i:d:",["screen=","rotary=","increment=","delai="])
except getopt.GetoptError:
print 'sound.py --screen on(default)|off --rotary on(default)|off --increment 0.002(default) --delai 10(in ms)'
print 'sound.py --screen on(default)|off --rotary on(default)|off --increment 2(in ms) --delai 10(in ms)'
sys.exit(2)
for opt, arg in opts:
if opt == '-h':
print 'sound.py --screen on(default)|off --rotary on(default)|off --increment 0.002(default) --delai 10(in ms)'
print 'sound.py --screen on(default)|off --rotary on(default)|off --increment 2(in ms) --delai 10(in ms)'
sys.exit()
elif opt in ("-s", "--screen"):
screen = arg
elif opt in ("-r", "--rotary"):
rotary = arg
elif opt in ("-i", "--increment"):
increment = float(arg)
increment = float(arg)/1000
elif opt in ("-d", "--delai"):
delai = float(arg)/1000
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment