aboutsummaryrefslogtreecommitdiff
path: root/variants
diff options
context:
space:
mode:
authorXun Yang <me@xunyangixder.com>2013-08-21 23:04:42 +0200
committerXun Yang <me@xunyangixder.com>2013-08-21 23:14:00 +0200
commitaaaa2c3ab66ebb273338a15cc2a220b90cf3c0bd (patch)
treeac5237e205b1717de7080128187ff4c94cc59fc6 /variants
parent40b622a5d1e2cd347fcf1571e97602ec611addab (diff)
Fixed robot libraries and examples for unified Arduino core
Diffstat (limited to 'variants')
-rw-r--r--variants/robot_control/pins_arduino.h7
-rw-r--r--variants/robot_motor/pins_arduino.h5
2 files changed, 12 insertions, 0 deletions
diff --git a/variants/robot_control/pins_arduino.h b/variants/robot_control/pins_arduino.h
index d7ecae5..1967845 100644
--- a/variants/robot_control/pins_arduino.h
+++ b/variants/robot_control/pins_arduino.h
@@ -36,6 +36,13 @@
#define RXLED0 PORTB |= (1<<0)
#define RXLED1 PORTB &= ~(1<<0)
+#define D0 TKD0
+#define D1 TKD1
+#define D2 TKD2
+#define D3 TKD3
+#define D4 TKD4
+#define D5 TKD5
+
static const uint8_t RX = 0;
static const uint8_t TX = 1;
static const uint8_t SDA = 2;
diff --git a/variants/robot_motor/pins_arduino.h b/variants/robot_motor/pins_arduino.h
index 902d424..36d2742 100644
--- a/variants/robot_motor/pins_arduino.h
+++ b/variants/robot_motor/pins_arduino.h
@@ -36,6 +36,11 @@
#define RXLED0 PORTB |= (1<<0)
#define RXLED1 PORTB &= ~(1<<0)
+#define D10 TK1
+#define D9 TK2
+#define D8 TK4
+#define D7 TK3
+
static const uint8_t RX = 0;
static const uint8_t TX = 1;
static const uint8_t SDA = 2;