Hey all! I am trying to add an external stepper motor to my SKR E3 Turbo (external driver, too), and for that I need 4 digital pins such as the AUX-2's sda2, scl2, sda0, and scl0. However, I can't seem to figure out how to declare them in the firmware without getting a compilation error "was not declared in this scope". Can anyone help me out?
#AUX-2 Pins on SKR E3 Turbo
1 messages · Page 1 of 1 (latest)
that was my initial thought, but thats what the pinout says
and on their github, only sda1 and scl1 show up
look at schematic and datasheet
Yep, just have to look them up. We'd love to add such names to our header pile, but no one has taken that initiative.
thanks guys, this is all that shows up from the datasheet, though
would that mean that those pins are unusable separately
oh
and Z2 etc if it's not 4th+ axis
i found this on the datasheet, does that mean i'd put P0_27 instead of SDA0?
yep
alright, thanks!
just a follow up question - I put these lines of code in the setup function of MarlinCore.cpp (to test that the motor receives the signals on power on - I previously tested it synchronous with G28 but it didnt work) and its not working. I know the code works as I tested it on an Arduino circuit, but I can't figure out what's going wrong on the printer
for reference^
wtf is CS for?
overall code is very wrong for marlin
https://marlinfw.org/docs/development/coding_standards.html
you have to use WRITE and safe_delay
Marlin Firmware
Guidelines for Marlin code formatting, methodologies, and standards.