mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-12-08 20:39:01 +00:00
This is a quick *untested* implementation of a background threaded queue for `MotionSensor`. The optional *queue_len* is the number of values to store in the queue, *sample_rate* is the number of times per second to query the motion sensor, and if *partial* is False (the default) then the `motion_detected` property won't return anything until the queue has been filled.