Board is teensy 4.1 with these pins
#define M1_PIN GPIO_EMC_03
#define M2_PIN GPIO_EMC_08
#define M3_PIN GPIO_EMC_15
#define M4_PIN GPIO_EMC_20
#define M5_PIN GPIO_EMC_27
#define M6_PIN GPIO_EMC_32
#define M1_PIN2 GPIO_EMC_04
#define M2_PIN2 GPIO_EMC_09
#define M3_PIN2 GPIO_EMC_16
#define M4_PIN2 GPIO_EMC_21
#define M5_PIN2 GPIO_EMC_28
#define M6_PIN2 GPIO_EMC_33
#define M12_ENABLE_PIN GPIO_EMC_00
#define M34_ENABLE_PIN GPIO_EMC_13
#define M56_ENABLE_PIN GPIO_EMC_25
#define M12_FAULT_PIN GPIO_EMC_02
#define M34_FAULT_PIN GPIO_EMC_14
#define M56_FAULT_PIN GPIO_EMC_26
if i simple use simple code to run the motor1 it does not work
C:
#define GPIO_EMC_03 57
#define GPIO_EMC_04 2
#define GPIO_EMC_00 55
#define MOTOR1_FW GPIO_EMC_03
#define MOTOR1_BW GPIO_EMC_04
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(MOTOR1_FW, OUTPUT);
pinMode(MOTOR1_BW, OUTPUT);
pinMode(GPIO_EMC_00, OUTPUT);
digitalWrite(GPIO_EMC_00, HIGH);
Serial.println("Motor 1 initialized");
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(MOTOR1_FW, HIGH);
digitalWrite(MOTOR1_BW, LOW);
Serial.println("Moving CW");
delay(10000);
digitalWrite(MOTOR1_FW, LOW);
digitalWrite(MOTOR1_BW, HIGH);
Serial.println("Moving CCW");
delay(10000);
}