Page 122 - PROYECTO INTEGRADOR
P. 122
void setup()
{
lcd.begin(16,2);
pinMode(13, OUTPUT);
pinMode(12, OUTPUT);
pinMode(11, OUTPUT);
pinMode(10, OUTPUT);
}
void loop()
{
pot= analogRead(A5);
if(pot < 1) {
digitalWrite(13,LOW);
digitalWrite(12,LOW);
digitalWrite(11,LOW);
digitalWrite(10,LOW);
}
if(pot > 0 && pot <=245 ){
digitalWrite(13,HIGH);