mirror of
https://github.com/dustinbrun/Wetterstation.git
synced 2025-04-05 01:07:41 +00:00
25 lines
395 B
C++
25 lines
395 B
C++
void ledon() {
|
|
for (int fadeValue = 0 ; fadeValue <= 255; fadeValue += 5) {
|
|
analogWrite(dataled, fadeValue);
|
|
delay(7);
|
|
}
|
|
}
|
|
|
|
void ledoff() {
|
|
for (int fadeValue = 255 ; fadeValue >= 0; fadeValue -= 5) {
|
|
analogWrite(dataled, fadeValue);
|
|
delay(7);
|
|
}
|
|
}
|
|
|
|
void ledblink() {
|
|
ledon();
|
|
delay(200);
|
|
ledoff();
|
|
delay(200);
|
|
ledon();
|
|
delay(200);
|
|
ledoff();
|
|
delay(200);
|
|
}
|