oled-js-pi
oled-js-pi copied to clipboard
Cannot bringOff the screen on exit event
I have a script that on exit has to kill the screen (in order to clean the buffer and poweringOff). Using the process.on("exit", cb) seems to not work (like the function commanding the oled screen is asynchronous) Can you resolve?
Here the code: process.on("exit",() => { oled.clearDisplay(); oled.update() })