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: SDFileSystem mbed
Fork of PES4_Programme by
Diff: source/main.cpp
- Revision:
- 84:14ed3d02e782
- Parent:
- 83:d327a532c0ad
- Child:
- 85:04fe3dff23f4
--- a/source/main.cpp Mon Apr 09 12:02:29 2018 +0000
+++ b/source/main.cpp Mon Apr 09 12:24:19 2018 +0000
@@ -144,13 +144,26 @@
/* Test Zone */
/* DutyCycle */
+ case 42:
+ printf("case 42:\r\n");
+ initInterrupt();
+ printf("initInterrupt\r\n");
+ enableContainer(1);
+ while(1){
+ printf("%i\r\n", getDutyCycle());
+ printf("--- END ---\r\n");
+ wait(0.2);
+ }
+ break;
+
+ /* Drehung 90° */
case 43:
printf("case 43:\r\n");
initInterrupt();
printf("initInterrupt\r\n");
enableContainer(1);
while(1){
- printf("%i\r\n", getDutyCycle());
+ nextPosition(1);
printf("--- END ---\r\n");
wait(5);
}
