Pin assignments
The following is autogenerated from the source code. Pin numbers correspond
to those printed on the board. Within the code, these can be accessed with
pins::TT_DIR. These can be passed to functions like
io::timer_for() and io::oc_for() in order to convert them
into peripheral objects.
-
namespace
pins
Encoders
-
const uint8_t
TT_DIR = 39
-
const uint8_t
W_DIR = 47
-
const uint8_t
TT_CLK = 22
-
const uint8_t
W_CLK = 23
I2C Sensors
-
const uint8_t
IMU_SCL = 21
-
const uint8_t
IMU_SDA = 20
Motors
-
const uint8_t
TT_FWD = 3
-
const uint8_t
TT_REV = 5
-
const uint8_t
W_FWD = 6
-
const uint8_t
W_REV = 9
Human interaction
-
const uint8_t
SWITCH = 43
Input for the limit switch.
-
const uint8_t
LED = PIN_LED1
-
const uint8_t
USB_RX = 0
-
const uint8_t
USB_TX = 1