Temperature Control: NUCLEO-F334R8 + DS18B20 + LCD1602 shield + RELAY and see the results on the PC and on the LCD1602. For more info see here: http://www.emcu.it/NUCLEOevaBoards/mBed/QSG-Mbed-Library.pdf

Dependencies:   DS1820 mbed TextLCD

Fork of F334andDS18B20 by Enrico Marinoni

Revision:
1:5c2c3c1e5093
Parent:
0:b6b929b7764c
Child:
2:54ef8b27cbaa
--- a/main.cpp	Fri Dec 25 00:28:58 2015 +0000
+++ b/main.cpp	Fri Dec 25 16:18:46 2015 +0000
@@ -52,7 +52,7 @@
 
 // Below there is the Data Pin where is connected the: 
 // pin.2 (DQ) of the DS18B20
-#define DATA_PIN  A0
+#define DATA_PIN  A1
 
 #include "mbed.h"
 #include "DS1820.h"
@@ -66,7 +66,7 @@
  
 int main() 
 {
-    pc.printf("\r\n\nTemperature measurement made using an NUCLEO-F334R8 and DS18B20. \n\rby: www.emcu.it\n\r\n\r");
+    pc.printf("\r\n\nTemperature measurement made using an NUCLEO-F334R8 and DS18B20 (input on A1). \n\rby: www.emcu.it\n\r\n\r");
     while(1) 
     {
         probe.convertTemperature(true, DS1820::all_devices);         //Start temperature conversion, wait until ready