You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On my Arduino Nano ESP32, I had to also set pinMode to OUTPUT in my setup function, it does not seem to work to set them in the SwitecX25 constructor only. Perhaps add a setup() function that can do this later in runtime? I head that interfacing with hardware might be a bad idea in a constructor.
/Martin
The text was updated successfully, but these errors were encountered:
Thanks for your reply, I'm not sure what's causing this issue. It works if I do it like your proposal. The only difference then is that I have to use ->, i.e. motor1->zero() instead of motor1.zero().
Hi there
On my Arduino Nano ESP32, I had to also set pinMode to OUTPUT in my setup function, it does not seem to work to set them in the SwitecX25 constructor only. Perhaps add a setup() function that can do this later in runtime? I head that interfacing with hardware might be a bad idea in a constructor.
/Martin
The text was updated successfully, but these errors were encountered: