LED brightness control
Based on a previous project (The IRDA-Print) i made a simple, but very effective brightness controller.
Following is certainly not my best youtube video, but it shows how it adjusts the brightness.
(Pic shows the schematic of the LDR circuit)
The capacitor is charged. Thereafter, the GIO is switched to "input" and now a program loop continues until the capacitor is discharged. Meanwhile, a variable is incremented. Depending on the light of the value of the variable is now an indicator of the ambient brightness.