I have a lot of motor controllers in a project and a lot of relays too. Rather than code for each one, I want to code one function to code all of the relays.
I’m new to the microframework. Is there a method that I can use which will convert a string representation to a control? Something like casting the string “motorDriverL2981” to a motorDriverL298?