Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed MPU6050_2 SDFileSystem3 HCSR04_2
Revision 47:b3d78207b08f, committed 2018-12-22
- Comitter:
- taknokolat
- Date:
- Sat Dec 22 07:05:10 2018 +0000
- Parent:
- 46:ebbe73af073d
- Commit message:
- a
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r ebbe73af073d -r b3d78207b08f main.cpp
--- a/main.cpp Sat Dec 22 06:27:25 2018 +0000
+++ b/main.cpp Sat Dec 22 07:05:10 2018 +0000
@@ -161,12 +161,10 @@
static int16_t autopwm[8] = {1455,1450,1176,1628,1417,1452};
int main(void){
- while(1){
- printf("Hello World\r\n");
- //servo1.period_ms(14);
- servo1.pulsewidth_us(1300);
- wait(1);
- //servo1.period_ms(14);
- servo1.pulsewidth_us(1200);
+ for(int i=1400;i<1600;i++){
+ servo1.pulsewidth_us(i);
+ pc.printf("%d\r\n",i);
+ wait(3);
+
}
}
\ No newline at end of file