Commit fde711bf authored by plaasio's avatar plaasio 👷🏽

Update pnv.js

parent 97b07b0c
......@@ -58,14 +58,14 @@ PythonShell.run(src, options, 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 write = await getPySrc('wt-rfid.py', ['value1', 'value2', 'value3']);
var action = await new Promise.race([getPySrc('rd-rfid.py', []),getPySrc('btns.py', [])]);
var action = await new Promise.race([getPySrc('rd-rfid.py', [])]);
// if
console.log(action);
......
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