New answers tagged led
1
vote
How to use assembly in Arduino?
Re: "The main learning effect of this exercise is "Don't do it". You won't beat the c++ compiler..."
I agree with Edgar Bonet:
(1) Arduino is about learning, including learning ...
0
votes
Accepted
Make two LEDs fade in and out with with different PWM values
I don't think you have much choice than to come up with a sort of a counter and instead of having a single variable for the brightness of all the LEDs, you'll have to maintain a separate brightness ...
4
votes
Accepted
Just one more pin!
As a (slightly hacky and binary :) ) suggestion, you could use just two LEDs and free up a pin with the following...
Level 1 - LED 1 on, LED 2 off
Level 2 - LED 1 off, LED 2 on
Level 3 - LED 1 on, LED ...
2
votes
Just one more pin!
You may try charlieplexing your LEDs. Using only 3 digital pins
you can drive up to 6 LEDs. A web search for “charlieplexing
Arduino” should get you started.
Top 50 recent answers are included
Related Tags
led × 855arduino-uno × 323
programming × 60
button × 57
pwm × 54
rgb-led × 52
arduino-nano × 50
power × 44
c++ × 38
sensors × 35
arduino-mega × 33
serial × 27
pins × 27
resistor × 23
arduino-ide × 22
led-strip × 21
bluetooth × 19
shift-register × 19
transistor × 17
neopixel × 17
timers × 16
adafruit × 15
display × 15
ir × 15
current × 15