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
mbed.bld@1:e5f12ffcf32f, 2015-10-21 (annotated)
- Committer:
- rlanghbv
- Date:
- Wed Oct 21 11:10:55 2015 +0000
- Revision:
- 1:e5f12ffcf32f
- Parent:
- 0:6332c3bffb25
first commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rlanghbv | 0:6332c3bffb25 | 1 | http://mbed.org/users/mbed_official/code/mbed/builds/34e6b704fe68 |