File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed
Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -15,17 +15,34 @@ The latest release is 1.0 released on 16th November 2015.
1515About
1616=====
1717
18- With very little code, you can quickly get going connecting your physical
19- components together::
18+ Component interfaces are provided to allow a frictionless way to get started
19+ with physical computing::
20+
21+ from gpiozero import LED
22+ from time import sleep
23+
24+ led = LED(2)
25+
26+ while True:
27+ led.on()
28+ sleep(1)
29+ led.off()
30+ sleep(1)
31+
32+ With very little code, you can quickly get going connecting your components
33+ together::
2034
2135 from gpiozero import LED, Button
36+ from signal import pause
2237
2338 led = LED(2)
2439 button = Button(3)
2540
2641 button.when_pressed = led.on
2742 button.when_released = led.off
2843
44+ pause()
45+
2946The library includes interfaces to many simple everyday components, as well as
3047some more complex things like sensors, analogue-to-digital converters, full
3148colour LEDs, robotics kits and more.
You can’t perform that action at this time.
0 commit comments