Make Potentiometer Recipe more efficient

This commit is contained in:
Andrew Scheller
2016-04-19 22:16:42 +01:00
parent 53b78f1e32
commit 5f336ad2b2

View File

@@ -676,8 +676,8 @@ connected to a :class:`MCP3008` analog to digital converter::
from gpiozero import MCP3008
while True:
with MCP3008(channel=0) as pot:
with MCP3008(channel=0) as pot:
while True:
print(pot.value)
Present the value of a potentiometer on an LED bar graph using PWM to represent