MBot Software Library
v1.0
An API documentation to mbot_firmware repository
mbot_firmware
mbot
include
mbot
defs
mbot_pins.h
1
#ifndef MBOT_PIN_DEFS_H
2
#define MBOT_PIN_DEFS_H
3
4
// Motor Pin Definitions
5
#define M0_DIR_PIN 14
// PWM 7A
6
#define M1_DIR_PIN 15
// PWM 7B
7
#define M2_DIR_PIN 13
// PWM 6B
8
#define M3_DIR_PIN 20
// PWM 2A
9
10
#define M0_PWM_PIN 2
// PWM 1A
11
#define M1_PWM_PIN 3
// PWM 1B
12
#define M2_PWM_PIN 12
// PWM 6A
13
#define M3_PWM_PIN 21
// PWM 2B
14
15
#define SV0_PIN 2
16
#define SV1_PIN 3
17
#define SV2_PIN 12
18
#define SV3_PIN 21
19
20
// Motor Pin Definitions
21
#define ENC0_A_PIN 6
22
#define ENC0_B_PIN 7
23
#define ENC1_A_PIN 8
24
#define ENC1_B_PIN 9
25
#define ENC2_A_PIN 10
26
#define ENC2_B_PIN 11
27
28
#define ADC0_PIN 26
29
#define ADC1_PIN 27
30
#define ADC2_PIN 28
31
#define ADC3_PIN 29
32
33
#define SDA_PIN 4
34
#define SCL_PIN 5
35
36
#define IMU_INT_PIN 22
37
38
// LED on the Pico
39
#define LED_PIN 25
40
41
#endif
Generated by
1.9.1