johnny-five is very promising

This commit is contained in:
2024-03-03 15:22:51 +07:00
parent ca72e479f3
commit 71c4ec5072
20 changed files with 511 additions and 123 deletions

View File

@@ -1,7 +1,11 @@
import Firmata from 'firmata';
import { SuBoard } from './support';
import { Board } from 'johnny-five';
export const comport: string = '/dev/ttyUSB1';
export const board: Firmata = new Firmata(comport);
export const comport: string = '/dev/ttyUSB0';
export const board: Board = new Board({
port: comport,
repl: false,
debug: false
});
export const suBoard: SuBoard = new SuBoard();