![]() |
Pointer to pwm
I just wanted to make sure this was safe to do.
Code:
typedef structThanks |
Re: Pointer to pwm
Code:
typedef struct |
Re: Pointer to pwm
Nope, you're right!
Thanks |
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! |
Re: Pointer to pwm
We use Left(int) and Right(int)
Code:
void Left(int speed) { |
Re: Pointer to pwm
Quote:
|
| All times are GMT -5. The time now is 13:22. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi