psieg / Lightpack

Lightpack and Prismatik open repository
GNU General Public License v3.0
1.57k stars 188 forks source link

Prismatik does not turn off LED #510

Closed mishuha closed 2 years ago

mishuha commented 2 years ago

I use Arduino + FastLED like Adalight device (rate 500000) and program version 5.11.2.30. It works perfect during the normal work. It switches off on black screen (if not using minimal level brightness). But when I try to switch off the LED strip manually or close the program it does nothing. Despite any state of checkboxes in device settings. The same is for rebooting a computer.

Sometimes I managed to get LED off. This was possible when I did "turn off" in system tray and then exited the program. Below two logs (level 3) for the same steps: 1) run the program 2) set "turn on" 3) set "turn off" 4) exit the program

Prismatik.0_no_action_on_exit.log Prismatik.0_OK_on_exit.log

The both files seem identical at the end of file, but actual behavior is different. In one case the strip was not switched off and in the second case it was.

mishuha commented 2 years ago

Wrong number of leds were specified in sketch (100 vs actual 95).