Search found 1 match

by fluxmonkey
Wed Jan 19, 2022 4:20 am
Forum: General Discussion and Questions
Topic: reading PIR sensor/pin via interrupt
Replies: 1
Views: 8550

reading PIR sensor/pin via interrupt

TW: TOTAL NOOB question. I'm working through "Getting Started with Micropython on Raspberry Pi Pico", there's a Burglar Alarm project using the HC-SR501 PIR sensor. The example code works: import machine import utime sensor_pir = machine.Pin(28, machine.Pin.IN, machine.Pin.PULL_DOWN) def pir_handler...