Commit 8a0e4344 authored by plaasio's avatar plaasio 👷🏽

Update pnv.js

parent 1de410a0
......@@ -58,17 +58,18 @@ PythonShell.run(src, options, async function (err, results) {
async function init(){
var pressed = await getPySrc('btns.py', []);
console.log(pressed);
//var pressed = await getPySrc('btns.py', []);
//console.log(pressed);
getPySrc('lcd.py', ['READY', 'scan contract..']);
var read = await getPySrc('rd-rfid.py', []);
//var read = await getPySrc('rd-rfid.py', []);
//var write = await getPySrc('wt-rfid.py', ['value1', 'value2', 'value3']);
var action = new Promise.race([getPySrc('rd-rfid.py', []), getPySrc('btns.py', [])]);
// if
console.log(action);
getPySrc('lcd.py', ['scanning cont..', read]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment