You guessed it. ![]()
default for class is private. But I find protected more comfortable if I ever have to inherit from that class. If you don't like it - use private (or leave it).
reading hint: https://stackoverflow.com/questions/860339/difference-between-private-public-and-protected-inheritance
Thanks, I will be sure to check that out.
sorry, my fault. I didn't know how you want to use it. if you need the DRIVER, add it.
No problem, do you think I would add it in like I did originally:
stepper(AccelStepper::DRIVER, stepPin, dirPin)
or something more like how @johnnwasser suggested:
stepper(DRIVER, setPin, dirPin)
then leave them away (also in the initializer list).
Perfect, thanks. If it ain't broke don't fix it.