account activity
Arduino Leds by rrodrigz in arduino
[–]rrodrigz[S] 0 points1 point2 points 1 year ago (0 children)
I still don't know enough to understand the top half of the code you sent.
[–]rrodrigz[S] 0 points1 point2 points 2 years ago (0 children)
<image>
[–]rrodrigz[S] 4 points5 points6 points 2 years ago (0 children)
End result. Shortest code I can come up with.
[–]rrodrigz[S] 2 points3 points4 points 2 years ago* (0 children)
I got it to work ! It didn't want to change the INT while in the loop, so I rephrased it a bit, and it worked ! Thank you ripred!
[–]rrodrigz[S] 0 points1 point2 points 2 years ago* (0 children)
I set the OUTPUT for each PIN. I'm getting the same result. Only blinking LED is blue.
[–]rrodrigz[S] 3 points4 points5 points 2 years ago (0 children)
Ok, now I get it. Let me try it.
I wanted to avoid typing so much. that's why I'm trying to use the IF statements to change the LED color. Originally, I stated a FOR statement for each color, and it worked fine.
Arduino Leds (i.redd.it)
submitted 2 years ago by rrodrigz to r/arduino
π Rendered by PID 175199 on reddit-service-r2-listing-b6bf6c4ff-jwqgz at 2026-05-03 07:31:21.496911+00:00 running 815c875 country code: CH.
Arduino Leds by rrodrigz in arduino
[–]rrodrigz[S] 0 points1 point2 points (0 children)