That's great. The enable pin setup they had was so stupid I had to add a pull up resistor to prevent the motor from melting down. Hopefully they have an updated library that will work both versions with the same instructions.
Agreed. But no, there is no such library. The Waveshare website has sample code, two versions. One version for the old board, another version for the new board. And unfortunately, there's no way to programatically detect which board is installed. It must be left as a configuration option that the user must set.
How auspicious! As I was typing my last message, DHL was putting the box on my porch. The new code works on a Raspberry Pi4 running Ubuntu Mate 20.04. When you switch the board to 2.1, it works. When you switch to Original, it ceases to operate. I noticed no overheat issue.
... I don't know...but personally, I would have been hard-pressed not to name the buttons, "Original" and "Extra Crispy."
Okay I just committed a change that will save the position to a file, and restore that position on startup. To be clear, this doesn't actually move the focuser, it's the equivalent of doing a "sync" to the last known position.
Try it out and let me know how it works out for you.