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.
Diff: main.cpp
- Revision:
- 0:4fd62424fe36
--- /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;
+ }
+}