From f7889e2ceddbc3e15ea4b5377d831f4432169f76 Mon Sep 17 00:00:00 2001 From: Guo Wenxue <guowenxue@gmail.com> Date: Sat, 04 Jan 2025 16:26:42 +0800 Subject: [PATCH] Update iotd program configure file --- project/iotd/etc/iotd.conf | 2 ++ project/iotd/hal/gpio.c | 2 +- 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/project/iotd/etc/iotd.conf b/project/iotd/etc/iotd.conf index 1c392a7..e995ca9 100644 --- a/project/iotd/etc/iotd.conf +++ b/project/iotd/etc/iotd.conf @@ -22,12 +22,14 @@ [hardware] # LED或继电器等GPIO输出控制, 格式: {名称:BCM编码:控制电平} +# Relay(1) <-> 19 Relay(2) <-> 26 gpio_outpin={light_indoor:19:1},{light_hallway:26:1} # 红外探测到人后,继电器控制灯亮的时长 light_intval=15 # 按键或红外感应灯GPIO输入控制, 格式: {名称:BCM编码:控制:电平} +# Indoor(23)<->(black/gray) Hallway(24)<->(yellow/red) gpio_inpin={infrared_indoor:23:1},{infrared_hallway:24:1} # 是否使能 TSL2561 光强传感器模块,0:禁用 X:光强阈值 diff --git a/project/iotd/hal/gpio.c b/project/iotd/hal/gpio.c index b614958..01cc363 100644 --- a/project/iotd/hal/gpio.c +++ b/project/iotd/hal/gpio.c @@ -270,7 +270,7 @@ { if( s_gpio->input[i].active_level != gpiod_line_get_value(line) ) { - log_debug("infrared '%s' detect get wrong power level\n", s_gpio->input[i].name); + //log_debug("infrared '%s' detect get wrong power level\n", s_gpio->input[i].name); continue; } -- Gitblit v1.9.1