In addition to turning the headlights and brake lights on and off, you can also use turn signals! Here are all of the functions available for you to use:
* all_lights_on()
* all_lights_off()
* headlights_on()
* headlights_off()
* brake_lights_on()
* brake_lights_off()
* hazard_lights_on()
* hazard_lights_off()
* signal_left_on()
* signal_left_off()
* signal_right_on()
* signal_right_off()
Now try incorporating turn signals into your remote control code or writing some new code. Here’s an example that you can test out. Make sure you have a lot of room.
In [ ]:
zumi.signal_right_on()
zumi.forward(duration=3)
zumi.turn_right()
zumi.signal_right_off()
zumi.forward()