mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2026-04-25 00:13:49 +00:00
Add source/values docs page, close #448
This commit is contained in:
9
docs/examples/pwmled_pot.py
Normal file
9
docs/examples/pwmled_pot.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from gpiozero import PWMLED, MCP3008
|
||||
from signal import pause
|
||||
|
||||
led = PWMLED(17)
|
||||
pot = MCP3008()
|
||||
|
||||
led.source = pot.values
|
||||
|
||||
pause()
|
||||
Reference in New Issue
Block a user