-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
43 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]) | ||
``` |
8d0291a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
8d0291a
There was a problem hiding this comment.
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