parent
e7e5302662
commit
be9709dffb
7 changed files with 2853 additions and 0 deletions
@ -0,0 +1,2 @@ |
|||||||
|
cache/ |
||||||
|
compiled_files/ |
@ -0,0 +1 @@ |
|||||||
|
9cb51e13705e00d67104db7ee787f57f9293f31b9a2f4e02e3e9677d4e4152f9 |
@ -0,0 +1,18 @@ |
|||||||
|
{ |
||||||
|
"name": "wanjia-autosys", |
||||||
|
"entrance": "index.js", |
||||||
|
"director": "https://wiot-director.yimian.xyz/", |
||||||
|
"nodes": { |
||||||
|
"48c50": { |
||||||
|
"nickname": "n0", |
||||||
|
"msgport": 6789, |
||||||
|
"wifiIndex": 0 |
||||||
|
} |
||||||
|
}, |
||||||
|
"wifi": [ |
||||||
|
{ |
||||||
|
"ssid": "FCF4", |
||||||
|
"pwd": "12345678" |
||||||
|
} |
||||||
|
] |
||||||
|
} |
@ -0,0 +1,17 @@ |
|||||||
|
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);
|
||||||
|
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,23 @@ |
|||||||
|
{ |
||||||
|
"name": "wanjia-autosys", |
||||||
|
"version": "1.0.0", |
||||||
|
"description": "", |
||||||
|
"main": "index.js", |
||||||
|
"dependencies": { |
||||||
|
"wiot": "^0.4.1" |
||||||
|
}, |
||||||
|
"devDependencies": {}, |
||||||
|
"scripts": { |
||||||
|
"test": "echo \"Error: no test specified\" && exit 1" |
||||||
|
}, |
||||||
|
"repository": { |
||||||
|
"type": "git", |
||||||
|
"url": "git+ssh://git@github.com/IoTcat/wanjia-autosys.git" |
||||||
|
}, |
||||||
|
"author": "iotcat", |
||||||
|
"license": "MIT", |
||||||
|
"bugs": { |
||||||
|
"url": "https://github.com/IoTcat/wanjia-autosys/issues" |
||||||
|
}, |
||||||
|
"homepage": "https://github.com/IoTcat/wanjia-autosys#readme" |
||||||
|
} |
Loading…
Reference in new issue