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.
Dependencies: mbed
Revision 0:0d4fa78a0e45, committed 2018-12-05
- Comitter:
- uegata
- Date:
- Wed Dec 05 02:10:55 2018 +0000
- Commit message:
- WSN
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 |
diff -r 000000000000 -r 0d4fa78a0e45 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Wed Dec 05 02:10:55 2018 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+
+Serial xbee1(dp16,dp15);
+DigitalOut myled(dp24);
+AnalogIn analog_value(dp13);
+Serial pc(USBTX,USBRX);
+
+int main(void) {
+ int count=0;
+ float meas, temp;
+
+ myled=0;
+ while(1) {
+ meas=analog_value.read();
+ meas=meas*3300;
+ temp=0.1*meas-50;
+
+ myled=0;
+ xbee1.printf("%d: uegata(^o^) temp = %.1f C\r\n",count++,temp);
+ wait_ms(1000);
+ myled=1;
+ }
+}
diff -r 000000000000 -r 0d4fa78a0e45 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Dec 05 02:10:55 2018 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/3a7713b1edbc \ No newline at end of file