Código:
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int pinFoto=A0;
void setup() {
// put your setup code here, to run once:
lcd.begin(16, 2); // Fijamos el numero de caracteres y filas
pinMode(pinFoto,INPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
int valor=analogRead(pinFoto);
delay(1000);
Serial.println(valor);
if(valor<100)
{
}
}
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int pinFoto=A0;
void setup() {
// put your setup code here, to run once:
lcd.begin(16, 2); // Fijamos el numero de caracteres y filas
pinMode(pinFoto,INPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
int valor=analogRead(pinFoto);
delay(1000);
Serial.println(valor);
if(valor<100)
{
}
}
Imagen:
