CRINSA-team2024
2024
Documentation du Club Robot INSA Rennes 2024
Chargement...
Recherche...
Aucune correspondance
PIN.h
1
#ifndef __PIN_H__
2
#define __PIN_H__
3
4
#include <Arduino.h>
5
6
// DC motors driver
7
8
#define LEFT_MOTOR_EN 6
9
#define LEFT_MOTOR_PWM 3
10
#define LEFT_MOTOR_DIR 5
11
#define RIGHT_MOTOR_EN 9
12
#define RIGHT_MOTOR_PWM 11
13
#define RIGHT_MOTOR_DIR 10
14
#define DRIVER_RESET 12
15
#define DRIVER_FAULT A7
16
17
// Codewheels
18
19
#define QUAD_COUNTER_XY A0
20
#define QUAD_COUNTER_SEL1 7
21
#define QUAD_COUNTER_SEL2 8
22
#define QUAD_COUNTER_OE A5
23
#define QUAD_COUNTER_RST_X A2
24
#define QUAD_COUNTER_RST_Y A3
25
#define SHIFT_REG_DATA 13
26
#define SHIFT_REG_LATCH 4
27
#define SHIFT_REG_CLOCK 2
28
29
#define QUAD_COUNTER_X_AXIS 0
// Not pin
30
#define QUAD_COUNTER_Y_AXIS 1
// Not pin
31
32
#endif
// __PIN_H__
platformIO
wheeledbase
src
PIN.h
Généré par
1.10.0