Motion

![]() | ![]() | ![]() | ![]() |
PIR Motion Sensor
- Overview
- Drivers
- Samples
- Projects
PIR Motion Sensor
Key features • Analog motion sensing | Resources |
These Beyond the Standard Library, these functions are provided.
Function | Description | Use |
---|---|---|
Detect() | Return 1 if detect motion | |
DVer() | This driver version. |
The Code!
Modules ship with this script preloaded. Use Console to reload or modify the drivers. Additionally, some languages, such as Python, include DUELink.Engine.Record()
for recording scripts directly from the host.
##### Driver Code Starts Here ###
fn Detect()
return dread(3, 2)
fend
fn DVer()
return 0.1
fend
##### User Code Starts Here #####
- Script
- Python
- JavaScript
Use Console to modify the default driver by adding this sample.
# Append this code at the bottom of the script, right after the driver.
# You MUST keep the driver code!!
while 1
println(Detect())
Wait(1000)
wend
from DUELink.DUELinkController import DUELinkController
import time
availablePort = DUELinkController.GetConnectionPort()
duelink = DUELinkController(availablePort)
//code
Coming soon!
Ordering Info
Description | Part Number | Price |
---|---|---|
PIR Motion | GDL-SEMOTION-A | $00.00 |