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:d747e8c38639
diff -r 000000000000 -r d747e8c38639 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sat Sep 14 20:01:31 2013 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+
+DigitalOut myled(LED_RED);
+Timer M1;
+AnalogIn ain(PTC2);
+
+int main() {
+
+ while(1) {
+ M1.start();
+ myled = 1;
+ printf("Entrada do AD:%f\n",ain.read());
+ myled = 0;
+ M1.stop();
+ printf("O tempo gasto foi de %f segundos\n", M1.read());
+ }
+}
