Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
参数 & 接口 & 尺寸
准备 & 硬件连接
例程代码
#define PIR_PIN 4 void setup() { pinMode(PIR_PIN, INPUT); Serial.begin(115200); } void loop() { if(digitalRead(PIR_PIN) == HIGH) { Serial.println("There is someone here."); }else { Serial.println("There is no one here."); } }
运行结果
硬件原理图
数据手册