piface-node
piface-node copied to clipboard
Emit events directly from c++ code?
Investigate whether it's possible for the C++ code to directly emit events.
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