microsoft / jacdac-stm32x0

Jacdac implementation for STM32F0 and similar
MIT License
11 stars 10 forks source link

brightness 0 is not really 0 #11

Open pelikhan opened 3 years ago

pelikhan commented 3 years ago

What's the best way to turn off all leds? send #000?

mmoskal commented 3 years ago

The problem is when we detect brightness 0 or even color all-zero, we just turn off power. This doesn't work when you have your own power. Need to fix.

mmoskal commented 3 years ago

as a workaround, you can setall #010101 with brightness 1; it should clear

pelikhan commented 3 years ago

Is it bad to power off / on these little lights a lot?

mmoskal commented 3 years ago

I don't think it's a problem; the LEDs are powered on/off at 400Hz, and I doubt the IC cares.

pelikhan commented 3 years ago

Set 010101 color would destroy the color pattern on the strip... will wait for fix.

pelikhan commented 3 years ago

still an issue?

mmoskal commented 3 years ago

still an issue, on todo list but low

mmoskal commented 2 years ago

this is fixed in the leddisplay, ledstrip still has a problem