Commit 03a9d717 authored by Felix Kettner's avatar Felix Kettner

Update background.py

parent 908eeb34
Pipeline #34325 passed with stage
in 23 seconds
......@@ -41,7 +41,7 @@ def menu(lcd):
('Buzzer Test', buzzer_test),
('L-Sensor Test', l_sensor_test),
('Greifer Test', gripper_test),
('C-Sensor Test', c_sensor_test),]
('C-Sensor Test', c_sensor_test), ]
current = 1
in_menu = True
......@@ -177,16 +177,16 @@ def gripper_test(lcd):
message = ["",
"",
"open close"]
lcd.print(message)
lcd.print(message)
end = False
while not end:
button = wait_for_any()
if button == c.BUTTON_LEFT:
nano.open_gripper()
elif button == c.BUTTON_RIGHT:
nano.close_gripper()
else:
end = True
button = wait_for_any()
if button == c.BUTTON_LEFT:
nano.open_gripper()
elif button == c.BUTTON_RIGHT:
nano.close_gripper()
else:
end = True
nano.open_gripper()
leds.set_led(c.LED_MID, c.OFF)
......
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