// Henry's Bench //10W High Power Arduino PWM Tutorial int nLedDrive = 10; // pin zero is our relay drive int x; // LED Brightness variable void setup() { pinMode(nLedDrive, OUTPUT); // declare relaydrive as an output digitalWrite(nLedDrive, HIGH); //Turn the Relay Off } void loop() { for (x = 0; x < 256; x++){ analogWrite(nLedDrive, x); // 0 is off, 255 is bright delay(10); } }