Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 7 additions & 0 deletions
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‎

Lines changed: 5 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /