|
Re: Pointer to pwm
that seems like an OK way to do it... what might end up being easier, though, is to just do something like:
#define leftMotor pwm01
#define rightMotor pwm02
then you can use your left and right motors wherever you want, and if someone plugs something in backwards and doesn't want to unplug it you just have to change it in the one location in the header file. Just another option to consider!
|