This commit is contained in:
rusefillc 2023-05-11 22:40:20 -04:00
parent 424dcd67ee
commit 1f9694f0de
1 changed files with 19 additions and 0 deletions

View File

@ -34,6 +34,25 @@ void setStepperHw() {
#endif // HW_HELLEN
#if HW_PROTEUS
// coil #1
// PWM pin
engineConfiguration->stepperDcIo[0].controlPin = Gpio::D12;
// DIR pin
engineConfiguration->stepperDcIo[0].directionPin1 = Gpio::D10;
// Disable pin
engineConfiguration->stepperDcIo[0].disablePin = Gpio::D11;
// Unused
engineConfiguration->stepperDcIo[0].directionPin2 = Gpio::Unassigned;
// coil #2
// PWM pin
engineConfiguration->stepperDcIo[1].controlPin = Gpio::D13;
// DIR pin
engineConfiguration->stepperDcIo[1].directionPin1 = Gpio::D9;
// Disable pin
engineConfiguration->stepperDcIo[1].disablePin = Gpio::D8;
// Unused
engineConfiguration->stepperDcIo[1].directionPin2 = Gpio::Unassigned;
#endif // HW_PROTEUS
}