Hi again, i connect my 5110 lcd screens bl pin to pin 8 of arduino nano. and now control it with ldr which is connected to pin a1.
Just use basic code because i am noob at this for now.
if (ldr > 400) {
digitalWrite(led, LOW);
}
if (isik < 400) {
digitalWrite(led, HIGH);
}
I want to use millis here because dont want to instant turn on and off backlight. If i use delay, reading from temp sensor is interrupted. But i am confused about how to use basicly millis on here. I want backlight turn on when readings below 400 and wait 5 seconds before turn off when readings goes up.
I dont understand how to use it. Please help me understand. Thank you.