Skip to content

Commit 1cab18e

Browse files
committed
Merge branch 'master' of github.com:JuliaBerry/JuliaBerry.jl
2 parents a5581c1 + 8d0291a commit 1cab18e

File tree

1 file changed

+43
-2
lines changed

1 file changed

+43
-2
lines changed

README.md

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,46 @@
11
# JuliaBerry
22

3-
[![Build Status](https://travis-ci.org/aviks/JuliaBerry.jl.svg?branch=master)](https://travis-ci.org/aviks/JuliaBerry.jl)
3+
An omnibus package with a high level API for controlling peripherals on the Raspberry Pi computer. Currently has support for the GPIO pins on the Pi, and the ExplorerHat.
44

5-
An omnibus package with a high level API for controlling peripherals on the Raspberry Pi computer.
5+
## GPIO
6+
7+
### Generic Pins
8+
9+
```
10+
x = OutputPin(17)
11+
on(x)
12+
off(x)
13+
```
14+
15+
### LED
16+
17+
```
18+
x = LED(17)
19+
on(x)
20+
off(x)
21+
```
22+
23+
### Motors
24+
25+
```
26+
x = Motor(17, 23)
27+
forward(x, 50)
28+
stop(x)
29+
backward(x, 50)
30+
stop(x)
31+
```
32+
33+
## Explorer Hat
34+
35+
```
36+
using JuliaBerry.ExplorerHat
37+
38+
on(ExplorerHat.led[1])
39+
on.(ExplorerHat.led)
40+
off.(ExplorerHat.led)
41+
42+
on(ExploerHat.output[1])
43+
44+
forward(ExplorerHat.motor[1], 75)
45+
stop(ExplorerHat.motor[1])
46+
```

0 commit comments

Comments
 (0)