@bespoken-sdk/robot
TypeScript icon, indicating that this package has built-in type declarations

0.8.1-beta.8 • Public • Published

robot-sdk

Includes Common utilities for robots

GPIO Usage

Check the api docs

// Sets the value of the pin
// (pinNumber, <value>(0|1))
GPIO.write(1, 1)
    .then(() => {console.log("done")})
    .catch(() => {console.error("something went wrong")})
}) 

// Sets the mode of the pin
// (pinNumber, mode)
// <mode> options "in"|"out"|"pwm"|"clock"|"up"|"down"|"tri"
GPIO.mode(1, 'out')
    .then(() => {
        console.log('mode OUT')
    })
    .catch(() => {console.error("something went wrong")})

Publish Package

make sure you have logged in on github

npm publish

Readme

Keywords

Package Sidebar

Install

npm i @bespoken-sdk/robot

Weekly Downloads

3

Version

0.8.1-beta.8

License

none

Unpacked Size

5.01 kB

Total Files

7

Last publish

Collaborators

  • german-bspk
  • jpkbst