|
Re: Programming with the EDU
Process_Data_From_Local_IO() is definitely the wrong place to update a PWM. The PWM output will only change with each call to Putdata() inside Process_Data_From_Master_uP(), so move your code there.
Comment out the call to Default_Routine() unless you've disabled the pwm01 set in there.
I downloaded a fresh copy of the Edu default code and added your lines with a print in Process_Data_From_Master_uP(), commenting out the call to Default_Routines() so pwm01 doesn't get clobbered. I also attached a servo to pwm01 on the Edu for positive feedback that it works, and it happily ticks away, rewinds, and ticks away again.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
|