int PWMpin=10; void setup() { } void loop() { for(int i=0; i<255; i++){ analogWrite(PWMpin, i); delay(10); } }