From b06022623775de9ab47ef1ce355c5ecd134b8529 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Wed, 30 Jan 2019 11:47:22 +0800 Subject: [PATCH] update LED definition and add infrared source code --- modules/c/led.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/c/led.h b/modules/c/led.h index 8e3b4fa..dfc411c 100644 --- a/modules/c/led.h +++ b/modules/c/led.h @@ -8,9 +8,9 @@ * pi@raspberrypi:~ $ gpio readall show BCM and wPi pinmap * * LED BCM wPi - * B ---- GPIO.13 ---- GPIO.23 + * G ---- GPIO.13 ---- GPIO.23 * R ---- GPIO.19 ---- GPIO.24 - * G ---- GPIO.26 ---- GPIO.25 + * B ---- GPIO.26 ---- GPIO.25 * I ---- GND ---- * * Version: 1.0.0(2018/10/14) @@ -37,7 +37,7 @@ /* 3 LEDs WiringPi GPIO port */ /* LED_R LED_G LED_B */ -static int led_gpio[LED_MAX]= { 24, 25, 23 }; +static int led_gpio[LED_MAX]= { 24, 23, 25 }; void init_led(void); -- Gitblit v1.9.1