Skip to content

rob-deutsch/js-speeduino-comm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 'speeduino-comm'
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))
})

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published