LingYun Studio embeded system framwork software, such as thirdparty build shell and lingyun library
guowenxue
2024-08-21 5e7050e3c9ec8c1e35a80f9cdd1ab0c918f3e060
hal/api/led.c
File was renamed from hal/api/leds.c
@@ -24,7 +24,10 @@
#include <time.h>
#include <errno.h>
#include <signal.h>
#include "leds.h"
#include <getopt.h>
#include <libgen.h>
#include "led.h"
int g_stop = 0;
@@ -71,9 +74,9 @@
static led_t leds_info[LEDCNT] =
{
    {"red",   0, 23, ACTIVE_HIGH, 0, NULL}, /* GPIO1_IO23 on chip0 line 23, active high */
    {"green", 4, 1,  ACTIVE_HIGH, 0, NULL}, /* GPIO5_IO01 on chip4 line 1, active high */
    {"blue",  4, 8,  ACTIVE_HIGH, 0, NULL}, /* GPIO5_IO08 on chip4 line 8, active high */
    {"red",   0, 23, ACTIVE_HIGH, 0, NULL}, /* #31, GPIO1_IO23 on chip0 line 23, active high */
    {"green", 4, 1,  ACTIVE_HIGH, 0, NULL}, /* #33, GPIO5_IO01 on chip4 line 1, active high */
    {"blue",  4, 8,  ACTIVE_HIGH, 0, NULL}, /* #35, GPIO5_IO08 on chip4 line 8, active high */
};
/* Leds context */