Ready for wsocket

This commit is contained in:
2024-03-01 21:29:55 +07:00
parent 1ca8328e7f
commit e3cabcb5db
7 changed files with 265 additions and 22 deletions

View File

@@ -1,13 +1,16 @@
import Firmata from 'firmata';
export const comport = '/dev/ttyUSB0';
export const board = new Firmata(comport);
export const comport: string = '/dev/ttyUSB0';
export const board: Firmata = new Firmata(comport);
export const PIN = {
servo: 0,
rgb_led: {
r: 10,
g: 9,
b: 8
export const suBoard = {
connected: false,
PIN: {
servo: 0,
rgb_led: {
r: 10,
g: 9,
b: 8
}
}
}