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: C12832 EthernetInterface FiapV2 HTTPClientForSOAP LM75B NTPClient mbed-rtos mbed spxml
Fork of temp_FIAP by
Revision 4:c3338ccbd213, committed 2015-04-13
- Comitter:
- hogejun
- Date:
- Mon Apr 13 04:03:31 2015 +0000
- Parent:
- 3:536b3d6e1555
- Commit message:
- FRDM-K64F porting
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/C12832.lib Mon Apr 13 04:03:31 2015 +0000 @@ -0,0 +1,1 @@ +https://mbed.org/users/chris/code/C12832/#7de323fa46fe
--- a/EthernetInterface.lib Wed Aug 22 02:32:14 2012 +0000 +++ b/EthernetInterface.lib Mon Apr 13 04:03:31 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/EthernetInterface/#a0ee3ae75cfa +http://mbed.org/users/mbed_official/code/EthernetInterface/#2fc406e2553f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LM75B.lib Mon Apr 13 04:03:31 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/neilt6/code/LM75B/#fc27dc535ea9
--- a/TextLCD.lib Wed Aug 22 02:32:14 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/simon/code/TextLCD/#44f34c09bd37
--- a/main.cpp	Wed Aug 22 02:32:14 2012 +0000
+++ b/main.cpp	Mon Apr 13 04:03:31 2015 +0000
@@ -1,5 +1,9 @@
 #include "mbed.h"
-#include "TextLCD.h"
+//#include "TextLCD.h"
+#include "C12832.h"
+#include "LM75B.h"
+
+
 #include "EthernetInterface.h"
 #include "NTPClient.h"
 #include "fiap.h"
@@ -11,9 +15,13 @@
 Ticker timer1;
 time_t ctTime;
 
-TextLCD lcd(p24, p26, p27, p28, p29, p30);
-AnalogIn ain(p15);
+//TextLCD lcd(p24, p26, p27, p28, p29, p30);
+// Using Arduino pin notation
+C12832 lcd(D11, D13, D12, D7, D10);
+//AnalogIn ain(p15);
 DigitalOut led(LED1);
+LM75B sensor(D14,D15);
+
 char timezone[] = "+09:00";  // JST
 char atemp[6];
 FIAP fiap("http://192.168.1.3/axis2/services/FIAPStorage");
@@ -27,7 +35,8 @@
     float temp;
     char buffer[9];
     led=!led;
-    temp=ain*3.3*100.0;
+//    temp=ain*3.3*100.0;
+    temp=sensor.temp();
     ctTime = time(NULL);
     strftime(buffer,9,"%X",localtime(&ctTime));
     lcd.locate(0,1);
--- a/mbed-rtos.lib Wed Aug 22 02:32:14 2012 +0000 +++ b/mbed-rtos.lib Mon Apr 13 04:03:31 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed-rtos/#9654a71f5a90 +http://mbed.org/users/mbed_official/code/mbed-rtos/#83895f30f8f2
--- a/mbed.bld Wed Aug 22 02:32:14 2012 +0000 +++ b/mbed.bld Mon Apr 13 04:03:31 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/10b9abbe79a6 \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/487b796308b0 \ No newline at end of file
