Skip to content

Commit 0090dc3

Browse files
author
Arya11111
committed
V0.2
1 parent 7fef344 commit 0090dc3

File tree

1 file changed

+19
-14
lines changed

1 file changed

+19
-14
lines changed

variants/dfrobot_beetle_rp2040/pins_arduino.h

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
// https://www.dfrobot.com
55

66
// Not pinned out
7-
#define PIN_LED (31u)
7+
#define PIN_LED (13u)
88

99

10-
// Serial
11-
#define PIN_SERIAL1_TX (0u)
12-
#define PIN_SERIAL1_RX (1u)
10+
// UART0
11+
#define PIN_SERIAL1_TX (28u)
12+
#define PIN_SERIAL1_RX (29u)
1313

14-
// Not pinned out
15-
#define PIN_SERIAL2_TX (31u)
16-
#define PIN_SERIAL2_RX (31u)
14+
// UART1
15+
#define PIN_SERIAL2_TX (4u)
16+
#define PIN_SERIAL2_RX (5u)
1717

1818
// SPI
19-
#define PIN_SPI0_MISO (0u)
19+
#define PIN_SPI0_MISO (0u)
2020
#define PIN_SPI0_MOSI (3u)
2121
#define PIN_SPI0_SCK (2u)
2222
#define PIN_SPI0_SS (1u)
@@ -28,13 +28,18 @@
2828
#define PIN_SPI1_SS (31u)
2929

3030
// Wire
31-
#define PIN_WIRE0_SDA (31u)
32-
#define PIN_WIRE0_SCL (31u)
33-
#define PIN_WIRE1_SDA (26u)
34-
#define PIN_WIRE1_SCL (27u)
31+
#define PIN_WIRE0_SDA (4u)
32+
#define PIN_WIRE0_SCL (5u)
33+
#define PIN_WIRE1_SDA (2u)
34+
#define PIN_WIRE1_SCL (3u)
3535

36-
#define SERIAL_HOWMANY (2u)
36+
#define SERIAL_HOWMANY (3u)
3737
#define SPI_HOWMANY (1u)
38-
#define WIRE_HOWMANY (1u)
38+
#define WIRE_HOWMANY (2u)
39+
40+
#define __PIN_A0 (29u)
41+
#define __PIN_A1 (28u)
42+
#define __PIN_A2 (31u)
43+
#define __PIN_A3 (31u)
3944

4045
#include "../generic/common.h"

0 commit comments

Comments
 (0)