Skip to content

Commit

Permalink
Merge branch 'master' of github.com:JuliaBerry/JuliaBerry.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
aviks committed Jul 14, 2019
2 parents a5581c1 + 8d0291a commit 1cab18e
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 1cab18e

@aviks
Copy link
Member Author

@aviks aviks commented on 1cab18e 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.

Registration pull request created: JuliaRegistries/General/2014

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.0 -m "<description of version>" 1cab18e99aab4de4aba2022b3d8a84c6f6257f49
git push origin v0.1.0

Please sign in to comment.