Guo Wenxue
2019-07-05 6d7b28e6a7836988247c188f4284861fe33410ae
modules/c/led.h
@@ -2,15 +2,15 @@
 *      Copyright:  (C) 2018 LingYun IoT System Studio
 *                  All rights reserved.
 *
 *       Filename:  led.c
 *       Filename:  led.h
 *    Description:  This file is used to control RGB 3-colours LED
 *
 *     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);