oled-js-pi icon indicating copy to clipboard operation
oled-js-pi copied to clipboard

Cannot bringOff the screen on exit event

Open bahamut657 opened this issue 7 years ago • 0 comments

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() })

bahamut657 avatar Jul 09 '17 20:07 bahamut657