Add the following snippet to your HTML:
Make your Arduino into a BLN control!
Read up about this project on
Super!
/* */ const int LED=9; int i=0; void setup() { pinMode(LED,OUTPUT); } void loop() { for(i=0;i<255;i+1) { analogWrite(LED,i); delay(10); } for(i=255;i>0;i-1) { analogWrite(LED,i); delay(10); } }
Comments