Add bee-bot / turtle robot example, close #443

This commit is contained in:
Ben Nuttall
2017-01-08 15:58:50 +00:00
parent c586fe07f5
commit ed12ac1994
3 changed files with 39 additions and 1 deletions

View File

@@ -331,8 +331,12 @@ Button controlled robot
Use four GPIO buttons as forward/back/left/right controls for a robot:
.. literalinclude:: examples/robot_buttons.py
.. literalinclude:: examples/robot_buttons_1.py
Alternatively, use four buttons to program the directions and add a fifth
button to process them in turn, like a Bee-Bot or Turtle robot.
.. literalinclude:: examples/robot_buttons_2.py
Keyboard controlled robot
=========================