fcfb88f7bb207b825c3f59a8a0859f1e9146420c..b6a72028f0880a9e1d98502c15b7ceeaaf8042ce
2021-11-03 guowenxue
update led.c and relay.c
b6a720 diff | tree
2021-11-03 guowenxue
update led.c
bb068e diff | tree
2 files modified
14 ■■■■ changed files
modules/c/led.c 12 ●●●● patch | view | raw | blame | history
modules/c/relay.c 2 ●●● patch | view | raw | blame | history
modules/c/led.c
@@ -7,11 +7,11 @@
 *
 *     pi@raspberrypi:~ $ gpio readall     #show RPi pin map
 *
 *                 LED     #PIN        BCM
 *                  I ----  39  ----   GND
 *                  G ----  37  ----   26
 *                  R ----  35  ----   19
 *                  B ----  33  ----   13
 *                 LED     #PIN         BCM
 *                  I ----  39  ----    GND
 *                  G ----  37  ----   GPIO26
 *                  R ----  35  ----   GPIO19
 *                  B ----  33  ----   GPIO13
 *                 
 *        Version:  1.0.0(2012/11/03)
 *         Author:  Guo Wenxue <guowenxue@gmail.com>
@@ -71,7 +71,7 @@
}
#if 1 /* Use libgpiod lowlevel API */
#if 0 /* Use libgpiod lowlevel API */
struct gpiod_chip* chip;
modules/c/relay.c
@@ -21,7 +21,7 @@
#define ON              1
#define OFF             0
/* Relay    #Pin(29)    BCM(5) */
/* Relay    #Pin(29)    GPIO05(BCM 5)  */
#define relay_pin       5
int turn_relay(int cmd);