Skip to content

Commit

Permalink
release: v0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
beni69 committed Aug 6, 2023
1 parent b1dca1b commit 12c8246
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 8 deletions.
1 change: 1 addition & 0 deletions node-ffi/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export class Robot {
nop(): Promise<void>
getUptime(): Promise<number>
drive(left: number, right: number): Promise<void>
stop(): Promise<void>
led(r: boolean, g: boolean, b: boolean): Promise<void>
rolandServo(degree: number): Promise<void>
buzzer(pw: number): Promise<void>
Expand Down
2 changes: 1 addition & 1 deletion node-ffi/npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kareszklub/roblib-client-node-darwin-x64",
"version": "0.0.1",
"version": "0.0.2",
"repository": {
"url": "https://github.com/kareszklub/roblib-rs"
},
Expand Down
2 changes: 1 addition & 1 deletion node-ffi/npm/linux-arm-gnueabihf/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kareszklub/roblib-client-node-linux-arm-gnueabihf",
"version": "0.0.1",
"version": "0.0.2",
"repository": {
"url": "https://github.com/kareszklub/roblib-rs"
},
Expand Down
2 changes: 1 addition & 1 deletion node-ffi/npm/linux-arm64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kareszklub/roblib-client-node-linux-arm64-gnu",
"version": "0.0.1",
"version": "0.0.2",
"repository": {
"url": "https://github.com/kareszklub/roblib-rs"
},
Expand Down
2 changes: 1 addition & 1 deletion node-ffi/npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kareszklub/roblib-client-node-linux-x64-gnu",
"version": "0.0.1",
"version": "0.0.2",
"repository": {
"url": "https://github.com/kareszklub/roblib-rs"
},
Expand Down
2 changes: 1 addition & 1 deletion node-ffi/npm/linux-x64-musl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kareszklub/roblib-client-node-linux-x64-musl",
"version": "0.0.1",
"version": "0.0.2",
"repository": {
"url": "https://github.com/kareszklub/roblib-rs"
},
Expand Down
2 changes: 1 addition & 1 deletion node-ffi/npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kareszklub/roblib-client-node-win32-x64-msvc",
"version": "0.0.1",
"version": "0.0.2",
"repository": {
"url": "https://github.com/kareszklub/roblib-rs"
},
Expand Down
6 changes: 4 additions & 2 deletions node-ffi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kareszklub/roblib-client-node",
"version": "0.0.1",
"version": "0.0.2",
"main": "index.js",
"types": "index.d.ts",
"repository": {
Expand Down Expand Up @@ -32,5 +32,7 @@
"universal": "napi universal",
"version": "napi version"
},
"exclude": ["test.*js"]
"exclude": [
"test.*js"
]
}
5 changes: 5 additions & 0 deletions node-ffi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ impl JsRobot {
Ok(self.robot.drive(left, right).await?)
}

#[napi]
pub async fn stop(&self) -> Result<()> {
Ok(self.robot.stop().await?)
}

#[napi]
pub async fn led(&self, r: bool, g: bool, b: bool) -> Result<()> {
Ok(self.robot.led(r, g, b).await?)
Expand Down

1 comment on commit 12c8246

@github-actions
Copy link

Choose a reason for hiding this comment

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

Artifacts

View all

base roland
aarch64-unknown-linux-gnu Download Download
aarch64-unknown-linux-musl Download Download
armv7-unknown-linux-gnueabihf Download Download
armv7-unknown-linux-musleabihf Download Download
x86_64-pc-windows-msvc Download Download
x86_64-unknown-linux-gnu Download Download
x86_64-unknown-linux-musl Download Download

Please sign in to comment.