Skip to content

Commit ec31a2e

Browse files
author
Xun Yang
committed
Fixed robot libraries and examples for unified Arduino core
1 parent 293e46b commit ec31a2e

File tree

34 files changed

+2983
-242
lines changed

34 files changed

+2983
-242
lines changed

hardware/arduino/variants/robot_control/pins_arduino.h

+7
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@
3636
#define RXLED0 PORTB |= (1<<0)
3737
#define RXLED1 PORTB &= ~(1<<0)
3838

39+
#define D0 TKD0
40+
#define D1 TKD1
41+
#define D2 TKD2
42+
#define D3 TKD3
43+
#define D4 TKD4
44+
#define D5 TKD5
45+
3946
static const uint8_t RX = 0;
4047
static const uint8_t TX = 1;
4148
static const uint8_t SDA = 2;

hardware/arduino/variants/robot_motor/pins_arduino.h

+5
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@
3636
#define RXLED0 PORTB |= (1<<0)
3737
#define RXLED1 PORTB &= ~(1<<0)
3838

39+
#define D10 TK1
40+
#define D9 TK2
41+
#define D8 TK4
42+
#define D7 TK3
43+
3944
static const uint8_t RX = 0;
4045
static const uint8_t TX = 1;
4146
static const uint8_t SDA = 2;

0 commit comments

Comments
 (0)