mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2026-02-01 14:16:45 +00:00
@@ -46,7 +46,7 @@ All components must be wired up correctly before using with this library.
|
|||||||
The following program looks like it should turn an LED on:
|
The following program looks like it should turn an LED on:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from gpiozero import led
|
from gpiozero import LED
|
||||||
|
|
||||||
led = LED(2)
|
led = LED(2)
|
||||||
led.on()
|
led.on()
|
||||||
|
|||||||
Reference in New Issue
Block a user