Here's my suggestion:
Code:
globe_motor VAR byte ' put this in the "declare variables" section
' Main Loop:
globe_motor = 127 + (127*switch_one) - (127*switch_two)
You gotta put the globe_motor in your serout, in whatever PWM output you want.
With this code, the motor will turn CW if switch_one is pressed, and CCW if switch_two is on. If both are pressed, nothing happens.
Hope I helped, feel free to ask any question.
