Add more advanced and remote recipes

This commit is contained in:
Ben Nuttall
2017-07-17 02:03:29 +01:00
parent 957bb788ea
commit 220da280ba
16 changed files with 290 additions and 11 deletions

View File

@@ -0,0 +1,12 @@
from gpiozero import Robot, MCP3008
from gpiozero.tools import scaled
from signal import pause
robot = Robot(left=(4, 14), right=(17, 18))
left = MCP3008(0)
right = MCP3008(1)
robot.source = zip(scaled(left.values, -1, 1), scaled(right.values, -1, 1))
pause()