servom

Dependencies:   mbed Servo

Files at this revision

API Documentation at this revision

Comitter:
faraonemena
Date:
Thu Mar 28 15:56:14 2019 +0000
Parent:
0:c48a837ce951
Commit message:
servom

Changed in this revision

Servo.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Servo.lib	Thu Mar 21 15:07:27 2019 +0000
+++ b/Servo.lib	Thu Mar 28 15:56:14 2019 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/users/simon/code/Servo/#36b69a7ced07
+https://os.mbed.com/teams/ITI-DallaChiesa1/code/Servo/#de53826667ce
--- a/main.cpp	Thu Mar 21 15:07:27 2019 +0000
+++ b/main.cpp	Thu Mar 28 15:56:14 2019 +0000
@@ -22,10 +22,11 @@
 
 #include "mbed.h"
 #include "Servo.h"
+//#include "SG90.h"
+
 
 //Instantiate an object of Servo type on pin PB_3 named servo
 Servo servo(PB_3);
-
 //Instantiate an object of DigitalOut type on pin LED1 named myled
 DigitalOut myled(LED1);
 
@@ -41,6 +42,7 @@
 
     while(1) {
         //Modify servo position
+       
         servo.write(angle);
       
         // Print angle