mirror of
https://github.com/zyphlar/doorlock.git
synced 2024-04-03 21:36:03 +00:00
Add some helper scripts
This commit is contained in:
parent
8a0243ae7b
commit
ee69bc1c2d
3
scripts/close-door.js
Executable file
3
scripts/close-door.js
Executable file
|
@ -0,0 +1,3 @@
|
|||
const { Board } = require('easy-usb-relay')
|
||||
const board = new Board(2)
|
||||
board.allOff()
|
3
scripts/open-door.js
Executable file
3
scripts/open-door.js
Executable file
|
@ -0,0 +1,3 @@
|
|||
const { Board } = require('easy-usb-relay')
|
||||
const board = new Board(2)
|
||||
board.allOn()
|
Loading…
Reference in New Issue
Block a user