int PWMpin = 10;
void setup() {
// put your setup code here, to run once:
}
void loop() {
int x = 1;
for (int i = 0; i > -1; i = i + x){
analogWrite(PWMpin, i);
if (i == 255) x = -1;
delay(100);
}
}
int PWMpin = 10;
void setup() {
// put your setup code here, to run once:
}
void loop() {
int x = 1;
for (int i = 0; i > -1; i = i + x){
analogWrite(PWMpin, i);
if (i == 255) x = -1;
delay(100);
}
}