Skip to content

Instantly share code, notes, and snippets.

@ANTSgombak
Created January 5, 2023 13:14
Micropython LDR Raspberry Pi Pico
from machine import Pin, ADC
import utime
LDR = ADC(26)
while True:
nilai = LDR.read_u16()
print(nilai)
utime.sleep(500)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment