Add source/values docs page, close #448

This commit is contained in:
Ben Nuttall
2016-10-09 21:19:27 +01:00
parent eaa6016ded
commit b0b0e379a6
17 changed files with 217 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
from gpiozero import LED
from random import randint
from signal import pause
def rand():
while True:
yield randint(0, 1)
led = LED(17)
led.source = rand()
pause()