johnny-five 不能工作

作者: Sarthak-Arya创建于 2022年12月29日更新于 2024年8月10日

const { Board, Led } = require("johnny-five"); const board = new Board({port:"COM3"});

board.on("ready", () => {

// 创建一个标准的 led 组件实例 const led = new Led(13); this.repl.inject({ led: led }); // 在 500ms 内闪烁 LED,每次开关时间为 1000ms led.blink(1000); }); 以上是我的代码

内容来源: rwaldron/johnny-five