#get_voltage_pico_test of the Wio light sensor #Source 12 in Article 161 #by D@CC #on 2023GJul05 #more info: get_voltage_pico_test.txt in Article 161 & 186 Source: https://wiki.seeedstudio.com/Wio-Terminal-CircuitPython/ import time import board from analogio import AnalogIn analog_in = AnalogIn(board.LIGHT) # Light Sensor pin on Wio Terminal def get_voltage(pin): return (pin.value * 3.3) / 65536 while True: print("Light Sensor Voltage: ", get_voltage(analog_in)) time.sleep(0.1) #/get_voltage_pico_test.py