-
I'm trying to use FastAccelStepper inside a custom stepper class. So far I could only get this working by initializing the engine globally and passing it to an init() method of my class that is called inside the setup function. Is it possible to "hide" the engine e.g. as a static member inside my stepper class? Or at least pass it as a constructor argument to the stepper class so no extra init method is needed? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Never tried this, but I assume, that the FastAccelStepperEngine instance could be stored anywhere, even inside your own class. Eventually you need to check, if the engine has been initialized and make sure, the engine is initialized only once. |
Beta Was this translation helpful? Give feedback.
Never tried this, but I assume, that the FastAccelStepperEngine instance could be stored anywhere, even inside your own class. Eventually you need to check, if the engine has been initialized and make sure, the engine is initialized only once.