I was finally able to setup my code to control brightness based on analog

I was finally able to setup my code to control brightness based on analog input from a photoresistor. I dont have a video of it yet but ill post one as soon as i mod my PCB (which is not setup to have a voltage divider) with the photoresistor and take it out for a real world test drive :slight_smile:

Just a quick update cleaned up the code and used the map statement to keep the lights from shutting off in the dark by making the minimum brightness 64 and prolong battery life in the daytime by capping the brightness at 200. Also made sure the photoresistor doesnt pick up anything above 700 since even with a 100W equivalent LED sitting on it it barely hit 1000. I felt capping it at 700 would make it more reactive. Ill post the code sometime tomorrow :slight_smile: