Open darrylhodgins opened 10 years ago
I am not familiar with NAN, how to emit an event from there, or to pass in a js callback that emits the event
However, this seems quite handy for avoiding the active loop: https://github.com/piface/libpifacedigital/blob/master/src/pifacedigital.h#L212
Investigate whether it's possible for the C++ code to directly emit events.