-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LowActive() causes weird Fade behaviour #128
Comments
Hi @RossAWaddell,
|
Hi @jandelgado ,
|
Hi @RossAWaddell , I did some testing, and it seems that it has to do with the GPIO port initialization ( void setup() {
// add this line
::digitalWrite(AMBER_LED_PIN, HIGH);
} |
Thanks! I'll give it a try. EDIT: I think there's no change. Strangely, the magnitude of the 'blip' seems to be somewhat random - when I hit the reset button on the Uno the blip doesn't appear to be the same every time. In the video the 2nd restart shows the blip more than the first.
|
I did some more tests. What probably helps in your case is to add a |
I need to connect the -ve pin of LEDs to the Arduino as I'm using a ULN2803A transistor to power 10 5mm LEDs. As this is the opposite of the usual single LED connection I'm using the LowActive() method to invert the fade, but it does a weird blip at the beginning which I don't see when connecting the +ve LED lead to the Arduino pin.
Any idea what's happening here? Ideally I'd like a smooth fade from off to the max brightness value.
+ve LED Lead Connected to Arduino Pin
YouTube video
-ve LED Lead Connected to Arduino Pin w/ LowActive()
YouTube video
The text was updated successfully, but these errors were encountered: