https://www.youtube.com/watch?v=X8dHbdhnGKY
int Led=9;
void setup()
{
pinMode(Led, OUTPUT);
}
void loop()
{
for(int Value=0;Value<=255;Value=Value+20)
{
analogWrite(Led, Value);
delay(200); // Wait for 1000 millisecond(s)
}
for(int Value=255;Value>=0;Value=Value-20)
{
analogWrite(Led, Value);
delay(200); // Wait for 1000 millisecond(s)
}
No comments:
Post a Comment