Lab08 oppgave2 template

Dependencies:   mbed

Import program

00001 #include "mbed.h"
00002 
00003 PwmOut servoMotor(PA_7);
00004 
00005 int main() 
00006 {    //sørg for å at servoMotor pulsen har en 
00007     //      Periode tid på .01 sek
00008     while (true) {
00009         //Roter Servo hodet minus 60 grader
00010         //   servoMotor har pusbredde på 1000 us
00011         wait(0.2);
00012         //Roter Servo hodet pluss 60 grader
00013         //   servoMotor har pusbredde på 2000 us
00014         wait(0.2);
00015     }
00016 }
00017 
00018 
00019 
00020 

Files at this revision

API Documentation at this revision

Comitter:
rlanghbv
Date:
Wed Oct 21 11:10:55 2015 +0000
Parent:
0:6332c3bffb25
Commit message:
first commit

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Oct 21 11:08:56 2015 +0000
+++ b/main.cpp	Wed Oct 21 11:10:55 2015 +0000
@@ -17,3 +17,4 @@
 
 
 
+