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: C12832_lcd HIDScope mbed-dsp mbed
Revision 6:9296ea7e9952, committed 2015-04-24
- Comitter:
- jessekaiser
- Date:
- Fri Apr 24 09:25:48 2015 +0000
- Parent:
- 5:24929fa367fc
- Commit message:
- Werkt bij 2 kHz, minder vloeiend dan met 1 kHz.
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Apr 24 08:57:30 2015 +0000
+++ b/main.cpp Fri Apr 24 09:25:48 2015 +0000
@@ -15,10 +15,12 @@
MS2 = 0;
MS3 = 0;
-Step.period(1.0/1000);
-Step.write(0.5);
- while (1) {
-
- }
+ Step.period(1.0/2000); //1 kHz, vanaf 2,5 kHz doet die niks meer. 2 kHz kan nog, maar minder vloeiend
+ Step.write(0.5); //Duty cycle van 50%
+
+
+ while(1){
+ Dir = 0; //Dir = 1 is naar boven, Dir = 0 is naar onder
+}
}
\ No newline at end of file