(regObj)
| 528 | |
| 529 | |
| 530 | def handle_button(regObj): |
| 531 | |
| 532 | port = "AD2" if regObj.group(SENSOR_BUTTON_PORT2_GROUP) else "AD1" |
| 533 | button_sensor = get_sensor_instance(port, easysensors.ButtonSensor) |
| 534 | if button_sensor: |
| 535 | sensors = {"{}: Button Pressed".format(port):known_sensors[port].is_button_pressed()} |
| 536 | else: |
| 537 | sensors = {port:"technical difficulties"} |
| 538 | return sensors |
| 539 | |
| 540 | |
| 541 | def handle_servos(regObj): |
no test coverage detected