Adjust train speeds
This commit is contained in:
parent
1f0be77134
commit
8d6233c888
8
main.py
8
main.py
|
@ -1483,14 +1483,14 @@ I will be terse in my responses.
|
||||||
res = ''
|
res = ''
|
||||||
|
|
||||||
if button == 'r':
|
if button == 'r':
|
||||||
res = mqtt_publish('train/control', -150)
|
res = mqtt_publish('train/control', -140)
|
||||||
logging.info('Setting train speed to: -150')
|
logging.info('Setting train speed to: -140')
|
||||||
elif button == 't':
|
elif button == 't':
|
||||||
res = mqtt_publish('train/control', 0)
|
res = mqtt_publish('train/control', 0)
|
||||||
logging.info('Setting train speed to: 0')
|
logging.info('Setting train speed to: 0')
|
||||||
elif button == 'y':
|
elif button == 'y':
|
||||||
res = mqtt_publish('train/control', 150)
|
res = mqtt_publish('train/control', 160)
|
||||||
logging.info('Setting train speed to: 150')
|
logging.info('Setting train speed to: 160')
|
||||||
|
|
||||||
elif button == 'b' or c == KEY_ESCAPE:
|
elif button == 'b' or c == KEY_ESCAPE:
|
||||||
current_screen = 'home'
|
current_screen = 'home'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user