Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Connect the cathode (the longest leg) of the Tri-color LED to Pin 6 GND. #261

Closed
JeepNL opened this issue Dec 24, 2018 · 1 comment
Closed

Comments

@JeepNL
Copy link

JeepNL commented Dec 24, 2018

About: Windows-iotcore-samples/Samples/RGBLED/

README: "Connect the cathode (the longest leg) of the Tri-color LED to Pin 6 GND."

I'm using a Raspberry 3B+. Where does the led get its power from?

I've connected the longest leg to 3.3V (not to GND) and then it sort of works. But (example) the blue led goes ON when I use ".Low"

redpin.Write(GpioPinValue.High);
greenpin.Write(GpioPinValue.High);
bluepin.Write(GpioPinValue.Low);

I'm using this in a Windows 10 IoT Background Service and when the program is not running the RGB led shines a little bit of blue light. When I set all the pins to HIGH, when the program runs, the led turns completely off.

@JeepNL JeepNL closed this as completed Dec 28, 2018
@JeepNL
Copy link
Author

JeepNL commented Dec 28, 2018

Okay, there are Cathode & Anode RGB Leds. Didn't know that. Got it to work. Even with PWM (lightning)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant