Suggestion for L298MotorDriver module driver

You know what would be nice? An asynchronous function for the L298MotorDriver.SetSpeed function.

Specifically, for the version of the method that takes a “time” parameter, for how long to take in ramping up/down to a specific speed.

I realize one could create their own separate thread for each motor, and have them ramp simultaneously that way, but it would be convenient to have a simple L298MotorDriver.SetSpeedAsync() method that would do that for you, and not block the current thread for the duration of the time delay.

It would be useful for ramping up multiple motors simultaneously :slight_smile:

@ mtylerjr - It would be a handy function, but we usually leave implementing any asynchronous functionality to the end user. I’m sure there are other modules that would benefit equally from some built in async functions so it wouldn’t make sense to just add one here.