edge lab LIVE! starts Tuesday in Munich. Grab a workshop seat and take home the board you build on. Code FRIEND-HACKSTER saves 20%. () Learn more!
신민섭gledel
Published

How to Control LED Brightness

Adjust LED brightness using an Arduino.

BeginnerShowcase (no instructions)55,414
How to Control LED Brightness

Things used in this project

Story

Read more

Custom parts and enclosures

digital_input_TU6XQ1wLiu.fzz

Code

How to control LED brightness

Arduino
int i=10;   

void setup() {
pinmode(i,OUPUT);
}

void loop() {
analogWrite(i,255);
delay(100);
analogWrite(i,150);
delay(100);
analogWrite(i,50);
delay(100);
analogWrite(i,10);
delay(100);
analogWrite(i,0);
delay(100);
}

Credits

신민섭
5 projects • 3 followers
My name is minseop ,i`m a student at Bongilcheon High School. And I`m interested in math and science.
gledel
100 projects • 117 followers
Looking back on my childhood, I was happy when I was making something and I was proud of myself. "Making is instinct!"

Comments