Demo program for MAXREFDES132. Searches 1-Wire® bus and prints ROM IDs of devices found. If the DS1920 is found presents user with menu for interfacing with the DS1920 temperature iButton

Dependencies:   OneWire Terminal mbed

Revision:
7:81d4e19b7b50
Parent:
5:e016b530bef5
Child:
8:7af592c694b2
--- a/main.cpp	Tue Aug 23 04:32:47 2016 +0000
+++ b/main.cpp	Tue Aug 23 04:35:43 2016 +0000
@@ -40,8 +40,8 @@
 
 //Uncomment the master for your setup
 
-#define I2C_TO_OW_MASTER
-//#define SERIAL_TO_OW_MASTER
+//#define I2C_TO_OW_MASTER
+#define SERIAL_TO_OW_MASTER
 //#define BIT_BANG_MASTER
 
 void print_rom_id(Terminal & term, const RomId & romId);
@@ -67,8 +67,7 @@
         //Requires a DS2480B serial to 1-wire master
         //https://www.maximintegrated.com/en/products/interface/controllers-expanders/DS2480B.html
         
-        Serial ow_uart(D1, D0);
-        Ds2480b owm(ow_uart);
+        DS2480B owm(D1, D0);
         term.printf("\nStarting Serial to 1-wire Demo\n");
         
     #elif defined(BIT_BANG_MASTER)