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:
David Glaude 2023-07-04 21:54:58 +02:00 committed by GitHub
parent 88fd01055e
commit 2c63cdcc9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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