Dallas' 1-Wire bus protocol library using mbed debug logs

Fork of OneWire by Zoltan Hudak

Files at this revision

API Documentation at this revision

Comitter:
hudakz
Date:
Sat Jan 07 11:20:08 2017 +0000
Parent:
4:68746e80003d
Commit message:
read_bit timing tuned to make it work on NUCLEO boards using the latest mbed revision.

Changed in this revision

OneWire.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 68746e80003d -r 45f3eb39b00c OneWire.cpp
--- a/OneWire.cpp	Wed Oct 28 17:55:11 2015 +0000
+++ b/OneWire.cpp	Sat Jan 07 11:20:08 2017 +0000
@@ -185,9 +185,9 @@
 
     wire.output();
     wire = 0;
-    wait_us(1);
+    //wait_us(1);
     wire.input();
-    wait_us(6);
+    wait_us(5);
     r = wire.read();
     wait_us(54);
     return r;