parallaxinc / Simple-Libraries

Contents of the SimpleIDE workspace folder and its Parallax Learn Simple Libraries subfolder.
http://learn.parallax.com/propeller-c-set-simpleide/update-your-learn-folder
21 stars 21 forks source link

Missing open loop servo control examples #202

Open AndyLindsay opened 4 years ago

AndyLindsay commented 4 years ago

Find and re-add (or just add if that's the case) the missing open loop servo control examples.

AndyLindsay commented 4 years ago

include "servodiffdrive.h"

int main()

{

drive_pins(12, 13);

drive_speeds(100, 100);

pause(2000);

drive_speeds(-100, -100);

pause(2000);

drive_speeds(0, 0);

drive_sleep();

}

AndyLindsay commented 4 years ago

include "servo.h"

int main() { servo_speed(12, 100); pause(2000); servo_speed(12, 50); pause(2000); servo_speed(12, -100); pause(2000); servo_speed(12, 0); servo_disable(12); }