Added script that takes a char as an arg (to replace 64 scripts)
This commit is contained in:
@@ -35,7 +35,7 @@ if((len(sys.argv)) > 1):
|
|||||||
lines = [22*c, 22*c, 22*c, 22*c, 22*c, 22*c]
|
lines = [22*c, 22*c, 22*c, 22*c, 22*c, 22*c]
|
||||||
print(lines)
|
print(lines)
|
||||||
test_flag = 0
|
test_flag = 0
|
||||||
print lines
|
print(lines)
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
row_num = len(lines)
|
row_num = len(lines)
|
||||||
|
|
||||||
@@ -54,16 +54,16 @@ if((len(sys.argv)) > 1):
|
|||||||
print('*** Jolly good! Message format valid. ***')
|
print('*** Jolly good! Message format valid. ***')
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
if lines and is_new_content(lines, last_lines):
|
if lines and is_new_content(lines, last_lines):
|
||||||
print 'before setup digits'
|
print('before setup digits')
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
setup_digits(lines, left_to_right_swap=False, real_hw=real_hw)
|
setup_digits(lines, left_to_right_swap=False, real_hw=real_hw)
|
||||||
print 'after setup digits'
|
print('after setup digits')
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
last_lines = lines
|
last_lines = lines
|
||||||
print 'Waiting for bits to change...'
|
print('Waiting for bits to change...')
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
time.sleep(6)
|
time.sleep(6)
|
||||||
print 'Click \"Next Flap\" to continue.'
|
print('Click \"Next Flap\" to continue.')
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
else:
|
else:
|
||||||
print("Invalid character selection... try again.")
|
print("Invalid character selection... try again.")
|
||||||
|
Reference in New Issue
Block a user