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:b22f610d83fd
diff -r 000000000000 -r b22f610d83fd main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue Jul 23 11:33:30 2019 +0000
@@ -0,0 +1,11 @@
+#include "mbed.h"
+AnalogIn LM35(p15);
+
+int main() {
+ float value;
+ while(1) {
+ value = ((LM35.read()*3276)/10);
+ printf("Temp: %2.2f degree C\r\n", value);
+ wait(1);
+ }
+}