Skip to content

Commit d72fe7e

Browse files
authored
Merge pull request #440 from outlandnish/master
Xenon Support: Removed LED pin 22
2 parents ee93132 + 54b4769 commit d72fe7e

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed

variants/particle_xenon/variant.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ const uint32_t g_ADigitalPinMap[] =
5353
_PINNUM(0, 18), // P0.18 (RESET)
5454

5555
// LEDS
56-
_PINNUM(1, 12), // P1.12 (PRIMARY_LED)
5756
_PINNUM(0, 13), // P0.13 (RGB_RED)
5857
_PINNUM(0, 14), // P0.14 (RGB_GREEN)
5958
_PINNUM(0, 15), // P0.15 (RGB_BLUE)

variants/particle_xenon/variant.h

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,16 @@ static const uint8_t D20 = PIN_D20;
9797

9898
#define BOARD_RGB_BRIGHTNESS 0x202020
9999

100-
#define PIN_LED1 (22)
100+
#define PIN_LED1 (7)
101101
#define LED_BUILTIN PIN_LED1
102102
#define LED_CONN PIN_LED1
103103

104104
#define LED_RED PIN_LED1
105105
#define LED_BLUE PIN_LED1
106106

107-
static const uint8_t LED_RGB_RED = (23);
108-
static const uint8_t LED_RGB_GREEN = (24);
109-
static const uint8_t LED_RGB_BLUE = (25);
107+
static const uint8_t LED_RGB_RED = (22);
108+
static const uint8_t LED_RGB_GREEN = (23);
109+
static const uint8_t LED_RGB_BLUE = (24);
110110

111111
// Buttons
112112
#define BUTTONS_NUMBER 2
@@ -117,24 +117,24 @@ static const uint8_t LED_RGB_BLUE = (25);
117117
static const uint8_t BUTTON_MODE = (20);
118118

119119
// Antenna
120-
#define ANTENNA_SWITCH_1 (26)
121-
#define ANTENNA_SWITCH_2 (27)
120+
#define ANTENNA_SWITCH_1 (25)
121+
#define ANTENNA_SWITCH_2 (26)
122122

123123
// NFC
124-
#define NFC1 (28)
125-
#define NFC2 (29)
124+
#define NFC1 (27)
125+
#define NFC2 (28)
126126

127127
/*
128128
* Analog pins
129129
*/
130-
#define PIN_A0 (30)
131-
#define PIN_A1 (31)
132-
#define PIN_A2 (32)
133-
#define PIN_A3 (33)
134-
#define PIN_A4 (34)
135-
#define PIN_A5 (35)
136-
#define PIN_A6 (36)
137-
#define PIN_A7 (37)
130+
#define PIN_A0 (29)
131+
#define PIN_A1 (30)
132+
#define PIN_A2 (31)
133+
#define PIN_A3 (32)
134+
#define PIN_A4 (33)
135+
#define PIN_A5 (34)
136+
#define PIN_A6 (35)
137+
#define PIN_A7 (36)
138138

139139
static const uint8_t A0 = PIN_A0;
140140
static const uint8_t A1 = PIN_A1;

0 commit comments

Comments
 (0)