Skip to content

Commit 1137ebc

Browse files
authored
Create README
1 parent 2b0cbf4 commit 1137ebc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# led
2+
Small LED library for use with Swift on Raspberry Pi
3+
4+
This makes it easier to use LEDs with Swift.
5+
6+
Here is a small example that will turn on an LED that is connected to GPIO pin 17 on a Raspberry Pi 3.
7+
```
8+
let gpios = SwiftyGPIO.GPIOs(for:.RaspberryPi3)
9+
let led = LED(gpioPin: .P17, swiftyGPIOs: gpios)
10+
led.value = 1
11+
```
12+
13+
See [**blink** aka Hello World for Swift on Raspberry Pi: Blink an LED](https://github.com/luisdelarosa/blink) for a full example.

0 commit comments

Comments
 (0)