Skip to content

Commit e7f120a

Browse files
committed
Define LED_BUILTIN
1 parent f13ede4 commit e7f120a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

variants/RAK811/variant.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ const PinName digitalPin[] = {
4545
PA_8, //D3
4646
PA_9, //D4
4747
PA_10, //D5
48-
PA_12, //D6
48+
PA_12, //D6 - LED1
4949
PA_13, //D7
5050
PA_14, //D8
5151
PA_15, //D9
5252
PB_2, //D10
5353
PB_3, //D11
54-
PB_4, //D12
54+
PB_4, //D12 - LED2
5555
PB_5, //D13
5656
PB_8, //D14
5757
PB_9, //D15

variants/RAK811/variant.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ enum {
6161
PA8, //D3
6262
PA9, //D4
6363
PA10, //D5
64-
PA12, //D6
64+
PA12, //D6 - LED1
6565
PA13, //D7
6666
PA14, //D8
6767
PA15, //D9
6868
PB2, //D10
6969
PB3, //D11
70-
PB4, //D12
70+
PB4, //D12 - LED2
7171
PB5, //D13
7272
PB8, //D15
7373
PB9, //D14
@@ -103,7 +103,7 @@ enum {
103103
//#define PWM_MAX_DUTY_CYCLE 255
104104

105105
// On-board LED pin number
106-
#define LED_BUILTIN 13
106+
#define LED_BUILTIN 6
107107
#define LED_GREEN LED_BUILTIN
108108

109109
// On-board user button
@@ -145,8 +145,8 @@ enum {
145145

146146
// Default pin used for 'Serial' instance (ex: ST-Link)
147147
// Mandatory for Firmata
148-
#define PIN_SERIAL_RX D5
149-
#define PIN_SERIAL_TX D4
148+
#define PIN_SERIAL_RX 5
149+
#define PIN_SERIAL_TX 4
150150

151151
#ifdef __cplusplus
152152
} // extern "C"

0 commit comments

Comments
 (0)