Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
aviks authored Jul 14, 2019
1 parent db73fd8 commit 8d0291a
Showing 1 changed file with 43 additions and 2 deletions.
45 changes: 43 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,46 @@
# JuliaBerry

[![Build Status](https://travis-ci.org/aviks/JuliaBerry.jl.svg?branch=master)](https://travis-ci.org/aviks/JuliaBerry.jl)
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.

An omnibus package with a high level API for controlling peripherals on the Raspberry Pi computer.
## GPIO

### Generic Pins

```
x = OutputPin(17)
on(x)
off(x)
```

### LED

```
x = LED(17)
on(x)
off(x)
```

### Motors

```
x = Motor(17, 23)
forward(x, 50)
stop(x)
backward(x, 50)
stop(x)
```

## Explorer Hat

```
using JuliaBerry.ExplorerHat
on(ExplorerHat.led[1])
on.(ExplorerHat.led)
off.(ExplorerHat.led)
on(ExploerHat.output[1])
forward(ExplorerHat.motor[1], 75)
stop(ExplorerHat.motor[1])
```

2 comments on commit 8d0291a

@aviks
Copy link
Member Author

@aviks aviks commented on 8d0291a Jul 14, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error while trying to register: Error in Project.toml: Package 'PiGPIO' with UUID: fa6a7b62-84a1-539a-8ce7-6ce7cae50ddc not found in registry or stdlib

Please sign in to comment.