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.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
15 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.