1-Wire® library for mbed. Complete 1-Wire library that supports our silicon masters along with a bit-bang master on the MAX32600MBED platform with one common interface for mbed. Slave support has also been included and more slaves will be added as time permits.

Dependents:   MAXREFDES131_Qt_Demo MAX32630FTHR_iButton_uSD_Logger MAX32630FTHR_DS18B20_uSD_Logger MAXREFDES130_131_Demo ... more

Superseded by MaximInterface.

Revision:
120:200109b73e3c
Parent:
104:3f48daed532b
diff -r d184e69051ad -r 200109b73e3c Slaves/Switches/DS2413/DS2413.cpp
--- a/Slaves/Switches/DS2413/DS2413.cpp	Mon Aug 22 21:48:41 2016 +0000
+++ b/Slaves/Switches/DS2413/DS2413.cpp	Tue Sep 06 09:25:52 2016 -0500
@@ -167,7 +167,7 @@
 
     if (ow_result == OneWireMaster::Success)
     {
-        uint8_t send_block[] = { PIO_ACCESS_WRITE, val, ~val };
+        uint8_t send_block[] = { PIO_ACCESS_WRITE, val, static_cast<uint8_t>(~val) };
 
         ow_result = master().OWWriteBlock(send_block, 3);
         if (ow_result == OneWireMaster::Success)