Example program, usingthe Servo library

Dependencies:   mbed Servo

Files at this revision

API Documentation at this revision

Comitter:
darley_gonzalez
Date:
Tue Nov 17 19:30:45 2020 +0000
Parent:
0:7b3eabfa1a0f
Commit message:
SERVO;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 7b3eabfa1a0f -r e69c3331cef7 main.cpp
--- a/main.cpp	Tue May 18 19:40:18 2010 +0000
+++ b/main.cpp	Tue Nov 17 19:30:45 2020 +0000
@@ -1,7 +1,7 @@
 #include "mbed.h"
 #include "Servo.h"
 
-Servo myservo(p21);
+Servo myservo(D0);
 Serial pc(USBTX, USBRX);
 
 int main() {