RGB Neopixel Stripe
-
in UIFlow 2 i get for RGB
rgb_0 = RGBUnit((1, 2), 60)
Why 2 Pins? normaly Neopixel uses 1 Output Pin
if i switch to custom setup , UIFlow will also ask for Input and Output
How can i generate
rgb_0 = RGBUnit(2, 60) (output on port B; G2 ) no Input Pin
I need G1 Port for a other Input
Or can i use the normal Micropython Neopixel port?
n = neopixel.NeoPixel(pin, 60) -
It because the RGB is a subclass of unit which is the top level class for controlling all units. Just set both numbers to the same pin
-
Hello @taunushexe
as @ajb2k3 mentioned only one GPIO (the second one) is used for the RGB unit. So the other GPIO can still be used as input. I created an example which uses GPIO1 as input to control the color of the three RGB LEDs in the RGB unit.
See UIFlow2 Project Zone : M5Dial_RGBUnit_GPIO1_as_input_UIFlow2.0.4
Thanks
Felix
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login