Popular posts from this blog
fade a led using arduino here we will find that how the analog pins are use for the working purpose... we are not only fading the led .. we also using the variable resistor for very sensitive case. the output of the pin13 will be change from high - low when we move the joystick. /* Fade This example shows how to fade an LED using the analogWrite() function. This example code is in the public domain. */ const int lowestPin = 2; const int highestPin = 13; int value1=0; int joyPin1 = 0; int led = 13; // the pin that the LED is attached to int brightness = 0; // how bright the LED is // how many points to fade the LED by // the setup routine runs once when you press reset:...
Comments
Post a Comment