#define LDR 26
void setup() {
Serial1.begin(115200);
pinMode(LDR, INPUT);
}
void loop() {
int ADCvalue = analogRead(LDR);
Serial1.println(ADCvalue);
delay(500); // this speeds up the simulation
}
#define LDR 26
void setup() {
Serial1.begin(115200);
pinMode(LDR, INPUT);
}
void loop() {
int ADCvalue = analogRead(LDR);
Serial1.println(ADCvalue);
delay(500); // this speeds up the simulation
}