-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
also check radio is in TX mode before send() executes to prevent infinite loops avoid using binding generators' object renaming behavior; uses rust namespacing instead
- Loading branch information
Showing
40 changed files
with
1,858 additions
and
1,280 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
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
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 |
---|---|---|
|
@@ -350,6 +350,3 @@ Cargo.lock | |
# coverage output | ||
coverage.json | ||
lcov.info | ||
|
||
# supplemental docs build | ||
docs/site/ |
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
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# `@rf24/rf24` | ||
|
||
The node.js binding for the [rf24-rs] project (written in rust). | ||
|
||
[rf24-rs]: https://github.com/nRF24/rf24-rs | ||
|
||
This package is only functional on Linux machines. | ||
Although, installing this package in non-Linux environments will | ||
provide the typing information used on Linux. | ||
|
||
## Install | ||
|
||
To install from npmjs.org: | ||
|
||
```text | ||
npm install @rf24/rf24 | ||
``` | ||
|
||
To build from source: | ||
|
||
```text | ||
yarn install | ||
yarn build:debug | ||
``` | ||
|
||
## Examples | ||
|
||
The examples are written in Typescript and located in the repository's root path "examples/node/ts". | ||
To compile them to Javascript, run the following commands: | ||
|
||
```text | ||
yarn install | ||
yarn examples-build | ||
``` | ||
|
||
Afterwards the Javascript files are located "examples/node/js". | ||
To run them just pass the example file's path to the node interpreter: | ||
|
||
```text | ||
node examples/node/js/gettingStarted.js | ||
``` |
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,6 +1,6 @@ | ||
mod types; | ||
#[cfg(target_os = "linux")] | ||
mod radio; | ||
mod types; | ||
|
||
#[macro_use] | ||
extern crate napi_derive; |
Oops, something went wrong.