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

9
docs/examples/negated.py Normal file
View File

@@ -0,0 +1,9 @@
from gpiozero import Button, LED
from gpiozero.tools import negated
from signal import pause
led = LED(4)
btn = Button(17)
led.source = negated(btn.values)
pause()