speeduino-comm
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

js-speeduino-comm

This Node library communicates with a Speeduino over a serial port.

It is very much a work-in-progress.

commands.csv shows all the commands supported by the current Speeduino firmware (202108) and how they map to js-speeduino-comm

Installation

yard add speeduino-comm

Sample code

Typescript:

#!/usr/bin/env node

import { SpeeduinoComm } from '../SpeeduinoComm'
const speedy = new SpeeduinoComm({path: '/dev/tty.USB0'})

speedy.open((err) => {
    if (err) { throw err }

    speedy.signature().then(response => console.log("Signature:", response))
    speedy.versionInfo().then(response => console.log("Version info:", response))
    speedy.loopsPerSecond().then(response => console.log("Loops per second:", response))
})

Readme

Keywords

none

Package Sidebar

Install

npm i speeduino-comm

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

34.8 kB

Total Files

25

Last publish

Collaborators

  • rob-deutsch