The document describes code to control an LED using a light dependent resistor. It imports GPIO libraries, defines pin numbers for the LDR and LED, sets pin modes, and uses a loop to read the LDR value and control the LED based on the reading.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
6 views
Python Pgm-Led Light
The document describes code to control an LED using a light dependent resistor. It imports GPIO libraries, defines pin numbers for the LDR and LED, sets pin modes, and uses a loop to read the LDR value and control the LED based on the reading.