print("Hello, Pi Pico!")
print("This is Experiment - 7 and Objective - 7")
print("Name: Ashwini Kumar Behera; Registration No.: 1941012390") 
print('''Objective : 7	Implementation of a LDR Testing to 
calculate the Percentage of Light using LDR module and Raspberry
 Pi.''')


from machine import ADC,Pin
from time import sleep

photoPIN=28

def readLight(photoGP):
    photoRes=ADC(Pin(28))
    light=photoRes.read_u16()
    light=round(light/65535*100,2)
    return light

while True:
    print("Light: "+str(readLight(photoPIN))+"%")
    sleep
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT
pico:GP0
pico:GP1
pico:GND.1
pico:GP2
pico:GP3
pico:GP4
pico:GP5
pico:GND.2
pico:GP6
pico:GP7
pico:GP8
pico:GP9
pico:GND.3
pico:GP10
pico:GP11
pico:GP12
pico:GP13
pico:GND.4
pico:GP14
pico:GP15
pico:GP16
pico:GP17
pico:GND.5
pico:GP18
pico:GP19
pico:GP20
pico:GP21
pico:GND.6
pico:GP22
pico:RUN
pico:GP26
pico:GP27
pico:GND.7
pico:GP28
pico:ADC_VREF
pico:3V3
pico:3V3_EN
pico:GND.8
pico:VSYS
pico:VBUS
ldr1:VCC
ldr1:GND
ldr1:DO
ldr1:AO