boards/arduino-nano-33ble{-rev2}: use bool for leds state

This commit is contained in:
raiden00pl 2023-08-18 09:10:16 +02:00 committed by Xiang Xiao
parent 417207678e
commit 3350609a8a
4 changed files with 16 additions and 16 deletions

View file

@ -48,14 +48,14 @@ static const uint32_t g_ledcfg[BOARD_NLEDS] =
GPIO_LED5
};
static const uint32_t g_ledoff[BOARD_NLEDS] =
static const bool g_ledoff[BOARD_NLEDS] =
{
0, 0, 1, 1, 1
false, false, true, true, true
};
static const uint32_t g_ledon[BOARD_NLEDS] =
static const bool g_ledon[BOARD_NLEDS] =
{
1, 1, 0, 0, 0
true, true, false, false, false
};
/****************************************************************************

View file

@ -62,14 +62,14 @@ static const uint32_t g_ledcfg[BOARD_NLEDS] =
GPIO_LED5
};
static const uint32_t g_ledoff[BOARD_NLEDS] =
static const bool g_ledoff[BOARD_NLEDS] =
{
0, 0, 1, 1, 1
false, false, true, true, true
};
static const uint32_t g_ledon[BOARD_NLEDS] =
static const bool g_ledon[BOARD_NLEDS] =
{
1, 1, 0, 0, 0
true, true, false, false, false
};
/****************************************************************************

View file

@ -48,14 +48,14 @@ static const uint32_t g_ledcfg[BOARD_NLEDS] =
GPIO_LED5
};
static const uint32_t g_ledoff[BOARD_NLEDS] =
static const bool g_ledoff[BOARD_NLEDS] =
{
0, 0, 1, 1, 1
false, false, true, true, true
};
static const uint32_t g_ledon[BOARD_NLEDS] =
static const bool g_ledon[BOARD_NLEDS] =
{
1, 1, 0, 0, 0
true, true, false, false, false
};
/****************************************************************************

View file

@ -62,14 +62,14 @@ static const uint32_t g_ledcfg[BOARD_NLEDS] =
GPIO_LED5
};
static const uint32_t g_ledoff[BOARD_NLEDS] =
static const bool g_ledoff[BOARD_NLEDS] =
{
0, 0, 1, 1, 1
false, false, true, true, true
};
static const uint32_t g_ledon[BOARD_NLEDS] =
static const bool g_ledon[BOARD_NLEDS] =
{
1, 1, 0, 0, 0
true, true, false, false, false
};
/****************************************************************************