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.
Revision 0:4fd62424fe36, committed 2017-09-01
- Comitter:
- TakekazuKATO
- Date:
- Fri Sep 01 05:10:01 2017 +0000
- Commit message:
- First Commit
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 Fri Sep 01 05:10:01 2017 +0000
@@ -0,0 +1,14 @@
+#include "mbed.h"
+
+PwmOut myled(A6);
+AnalogIn mydial(A0);
+
+int main() {
+ myled.period(0.01);
+ myled=0.5;
+ while(1) {
+ float value = mydial;
+ printf("%f\n",value);
+ myled=value;
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Sep 01 05:10:01 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/a330f0fddbec \ No newline at end of file