Slider_Trinked MIDI: Typo for initial 2nd neopixel and show not needed.
There is likely a copy and paste mistake. It is not visible because in the main loop it is likely overwritten. There is also a "show" that is not needed as default is auto update. Not tested because I don't have install midi library, but I saw the problem by copying the initialisation only... and noticing both LED were red despite different hue.
This commit is contained in:
parent
88fd01055e
commit
2c63cdcc9a
1 changed files with 1 additions and 2 deletions
|
|
@ -64,11 +64,10 @@ color_a = hsv2rgb(hue_a, sat_a, val_a)
|
|||
hue_b = 127
|
||||
sat_b = 255
|
||||
val_b = 255
|
||||
color_b = hsv2rgb(hue_a, sat_a, val_a)
|
||||
color_b = hsv2rgb(hue_b, sat_b, val_b)
|
||||
|
||||
pixels[0] = color_a
|
||||
pixels[1] = color_b
|
||||
pixels.show()
|
||||
|
||||
while True:
|
||||
cc_val = slider.value // 512 # make 0-127 range for MIDI CC
|
||||
|
|
|
|||
Loading…
Reference in a new issue