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.
Fork of Nucleo_Hall_Set by
Revision 0:f8b3b7c6c71b, committed 2017-03-09
- Comitter:
- oguro
- Date:
- Thu Mar 09 01:28:47 2017 +0000
- Child:
- 1:5636e2520744
- Commit message:
- Hall Sensor Timing
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu Mar 09 01:28:47 2017 +0000
@@ -0,0 +1,24 @@
+#include "mbed.h"
+
+DigitalOut myled(LED1);
+Serial pc(USBTX,USBRX);
+
+
+DigitalIn H1(PA_15);
+DigitalIn H2(PB_3);
+DigitalIn H3(PB_10);
+
+AnalogOut Hout(PA_4);
+
+int main() {
+ pc.baud(128000);
+
+ while(1) {
+ myled = !myled;
+
+ U=H1; V=H2; W=H3;
+
+ pc.printf("%d,%d,%d \r" ,U,V,W);
+
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Mar 09 01:28:47 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/e1686b8d5b90 \ No newline at end of file
