Digital photo frame source code (AT76C120+CT956)
Function description: 1. After power on, the LED light lights up, which means that the current light is in automatic control mode; 2. You can switch back and forth between automatic and manual modes through button K5; 3. In manual mode, buttons K2, K3, and K4 correspond to A light brightness; (unavailable when k1 is pressed) 4. In automatic mode, it must first detect someone before automatically controlling the brightness, otherwise the desk lamp will go out. You can block the light of the photoresistor, or use a flashlight to illuminate the photoresistor to simulate changes in lighting, so that you can see that the brightness of the desk lamp will change as the light intensity in the environment changes. The effect is that the weaker the light, the brighter the desk lamp. . If the human body sensor cannot detect anyone for 1 minute, the desk lamp will automatically turn off. (The photoresistor is behind the USB lamp); 5. Whether it is automatic mode or manual mode, the brightness is divided into 10 levels, and 0-9 is displayed on the LCD; 6. Set date and time: Press K1 (setting ) key, the cursor will flash at the displayed year position, indicating that the year can be adjusted at this time. If you need to adjust the year, press K3 (plus) and K4 (minus) to adjust the year. Then press the K2 (move) key, and the cursor will flash when the month position is displayed. The month can be adjusted in the same way. Press the K2 key again to set the day, hour, minute, and second respectively. 7. When approaching the ultrasonic wave, the buzzer will alarm.