You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

17 lines
341 B

const wiot = require('wiot');
let node1 = new wiot.node.nodemcu('48c50');
let wire1 = new wiot.wire();
//let wire2 = new wiot.wire(); //Initizlize as 15
//when D3 is LOW/HIGH, set D4 to be LOW/HIGH
wiot.gpio(node1, wiot.INPUT, node1.D5, wire1);
wiot.gpio(node1, wiot.OUTPUT, node1.D6, wire1);
//wiot.buffer(node1, wire2, wire1, 3);