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:
- 83:d327a532c0ad
- Parent:
- 82:2fc026430ff2
- Child:
- 84:14ed3d02e782
--- a/source/main.cpp Mon Apr 09 05:49:27 2018 +0000
+++ b/source/main.cpp Mon Apr 09 12:02:29 2018 +0000
@@ -2,7 +2,7 @@
#define FADESPEED 5
#define DEMOTIME 5
-int state = 44;
+int state = 43;
int oldState;
@@ -142,6 +142,19 @@
/**************************************************************/
/* Test Zone */
+
+ /* DutyCycle */
+ case 43:
+ printf("case 43:\r\n");
+ initInterrupt();
+ printf("initInterrupt\r\n");
+ enableContainer(1);
+ while(1){
+ printf("%i\r\n", getDutyCycle());
+ printf("--- END ---\r\n");
+ wait(5);
+ }
+ break;
/* init PWM board */
case 44:
