mirror of https://github.com/IoTcat/wIoT.git
parent
c26151988f
commit
1d07c8bf8d
4 changed files with 19 additions and 4 deletions
@ -0,0 +1,9 @@ |
||||
var wiot = require('./wiot'); |
||||
|
||||
var MyMCU = new wiot.client({MAC: "BC:DD:C2:24:85:9F", pin: {D5: 1, D6: 1, D7: 1, D8: 1}}); |
||||
|
||||
var led = wiot.led(MyMCU, wiot.D6); |
||||
|
||||
wiot.begin([MyMCU], ()=>{ |
||||
led.breath(2000); |
||||
}); |
Loading…
Reference in new issue