mirror of
				https://github.com/KevinMidboe/python-gpiozero.git
				synced 2025-10-29 17:50:37 +00:00 
			
		
		
		
	Merge pull request #293 from lurch/patch-5
Make Potentiometer Recipe more efficient
This commit is contained in:
		| @@ -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: | ||||
|         while True: | ||||
|             print(pot.value) | ||||
|  | ||||
| Present the value of a potentiometer on an LED bar graph using PWM to represent | ||||
|   | ||||
		Reference in New Issue
	
	Block a user