Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zeiss/johnnyfivescalajs
Scala.js facade for Johnny-five
https://github.com/zeiss/johnnyfivescalajs
iot johnny-five scalajs
Last synced: 13 days ago
JSON representation
Scala.js facade for Johnny-five
- Host: GitHub
- URL: https://github.com/zeiss/johnnyfivescalajs
- Owner: ZEISS
- Created: 2018-08-07T08:49:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-24T11:20:04.000Z (about 6 years ago)
- Last Synced: 2024-11-09T04:28:48.720Z (2 months ago)
- Topics: iot, johnny-five, scalajs
- Language: Scala
- Homepage:
- Size: 922 KB
- Stars: 2
- Watchers: 8
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![](./assets/j5-scala-logo.png)
# JohnnyFive.js
[![Build Status](https://travis-ci.org/ZEISS/JohnnyFiveScalaJS.svg?branch=master)](https://travis-ci.org/ZEISS/JohnnyFiveScalaJS)
This is a Scala adapter to [Johnny-Five](http://johnny-five.io).
Example usage:
```scala
import johnnyfivescalajs.JohnnyFive._val board = Board(new BoardOption {override val repl = false })
val button = Button(12) // Param is pin number
button.on("hold", () => board.digitalWrite(1,1))
```## Getting Started
Add the following to your sbt build definition:
libraryDependencies += "com.zeiss" %%% "johnny5scala-js" % "0.0.1"
then
```scala
import johnnyfivescalajs.JohnnyFive._// now you can use the objects eg.
val board = Board()
```### Javascript Dependencies
JohnnyFive.js doesn't actually come bundled with the underlying `johnnyfive.js` file, so you'll need to add them manually.
## Documentation
JohnnyFive.io:
- The API documentation can be found [here](http://johnny-five.io/api/).
## Bugs and Feedback
For bugs, questions and discussions please use the Github Issues.
## LICENSE
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License atUnless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.