using gpio on RevPi Connect + RevPi DIO with Node.js
Posted: 24 Jan 2019, 15:26
Hi Kunbus and everyone.
I have to read two input signals and detect which one comes the first. Time between the signals should be not less 10 ms.(like a realtime)
Do you have a solution to read a trigger signal from RevDIO for Node.js ? e.g. pigpio node for RaspberryPi https://www.npmjs.com/package/pigpio
I`am not sure that revpi node ( https://github.com/tmuellerWieland/revpi ) may not miss that signals.
Also another way is to write a C application based on piTest which polls a register and sends a trigger signal to stdout and execute it in another child processes by using one of the next nodes: spawn(), exec(), execFile() or fork().
Is the latest variant a good solution?
Thanks you for advice.
I have to read two input signals and detect which one comes the first. Time between the signals should be not less 10 ms.(like a realtime)
Do you have a solution to read a trigger signal from RevDIO for Node.js ? e.g. pigpio node for RaspberryPi https://www.npmjs.com/package/pigpio
I`am not sure that revpi node ( https://github.com/tmuellerWieland/revpi ) may not miss that signals.
Also another way is to write a C application based on piTest which polls a register and sends a trigger signal to stdout and execute it in another child processes by using one of the next nodes: spawn(), exec(), execFile() or fork().
Is the latest variant a good solution?
Thanks you for advice.