Generic arduino library for motor drivers