how to use a for loop in arduino code example
Example: arduino for loop
for (initialization; condition; increment) {
// statement(s);
}
===
Example:
void loop() {
for (int i = 0; i <= 255; i++) {
analogWrite(PWMpin, i);
delay(10);
}
}