I spent the last two nights re-working the Pin class to accommodate the throttle. Originally, I was going to add a dedicated Throttle class, but I realized 90% of the class was already implemented in Pin, so I just added some extra class members, methods and two new format strings and it's working beautifully.
While I was doing that, I ended up changing some other code. I found out about setting default values in the method definition itself. This means that I was able to reduce the number of constructors needed for all of my classes. Much simpler.
Next step is to work on indicator output. I fully expect to hit some resistance here, but that will pave the way for interacting with other outputs.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.