Configuracion Arduino Y Potenciometro
Configuracion Arduino Y Potenciometro
Configuracion Arduino Y Potenciometro
int sensorPin = A0; // select the input pin for the potentiometer
int ledPin = 13, ledPin2=12, ledpin3=11, ledpin4=10, ledpin5=9 ; // select the pin for the LED
int sensorValue = 0; // variable to store the value coming from the sensor
void setup() {
pinMode(13, OUTPUT);
pinMode(12, OUTPUT);
pinMode(11, OUTPUT);
pinMode(10, OUTPUT);
pinMode(9, OUTPUT);
void loop() {
sensorValue = analogRead(A0);
delay(70);
digitalWrite(12, LOW);
delay(70);
digitalWrite(11, HIGH);
delay(70);
digitalWrite(10, LOW);
delay(70);
digitalWrite(9, HIGH);
delay(70);
delay(sensorValue);
digitalWrite(13, LOW);
digitalWrite(12, HIGH);
digitalWrite(11, LOW);
digitalWrite(10, HIGH);
digitalWrite(9, LOW);