Buttons
loco_iot.enable(msg.SUBTYPE_SW_1)
This is hardware code for button on pin 2
print(button_dict) write this to see if it is pushed
print(button_dict['Button 1']) write this to see if it isn't
loco_iot.enable(msg.SUBTYPE_SW_1)
This is hardware code for button on pin 2
print(button_dict) write this to see if it is pushed
print(button_dict['Button 1']) write this to see if it isn't