From 8517494b239d652ea9a24457faa13f88f55979b9 Mon Sep 17 00:00:00 2001
From: Guo Wenxue <guowenxue@gmail.com>
Date: Sun, 29 Dec 2024 14:45:29 +0800
Subject: [PATCH] Update infrared code to support two channels

---
 modules/infrared.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/infrared.c b/modules/infrared.c
index dd39d97..ad2679c 100644
--- a/modules/infrared.c
+++ b/modules/infrared.c
@@ -9,6 +9,7 @@
  * Pin connection:
  *               HC-SR501 Module           Raspberry Pi Board
  *                  VCC       <----->      5V
+ *                  I/O       <----->      #Pin16(BCM GPIO23)
  *                  I/O       <----->      #Pin18(BCM GPIO24)
  *                  GND       <----->      GND
  *
@@ -34,6 +35,7 @@
 enum
 {
     IR1 = 0,
+    IR2,
     IR_CNT,
 };
 
@@ -49,6 +51,7 @@
 static ir_info_t    ir_info[IR_CNT] =
 {
     {"IR1", 23, 1, NULL },
+    {"IR2", 24, 1, NULL },
 };
 
 /* infrared API context */

--
Gitblit v1.9.1