I am trying to get the display to dim between 10:00 pm and 7:00 am. I tried the following code to no avail. What am i missing??
if(hour()> =7 && hour()<=10) {
analogWrite(TFT_LED,255);
} else {
analogWrite(TFT_LED,40); //dim backlight between 10:00pm and 7:00am
}