peteoheat / pibooth-neopixel_spi

Implementation of pibooth-neopixel that uses SPI instead of PWM
7 stars 1 forks source link

Neopixels don't turn off when exiting pibooth. #6

Open lxne opened 1 month ago

lxne commented 1 month ago

Hi, it would be nice if the neopixels would turn off when exiting pibooth. The hook pibooth_cleanup is there if you exit pibooth via the config menu.

I tried it with adding the following to the py file.

@pibooth.hookimpl
def pibooth_cleanup(app):
    app.pixels.fill((0,0,0,0))
    app.pixels.show()
    LOGGER.info("Cleanup")

On exit, I can see 'Cleanup' in the log, but the neopixels do not turn off. Am I doing something wrong?