Working versione for L-tek FF1705
Revision 5:45f3eb39b00c, committed 2017-01-07
- Comitter:
- hudakz
- Date:
- Sat Jan 07 11:20:08 2017 +0000
- Parent:
- 4:68746e80003d
- Child:
- 6:d6e084297fb9
- 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 |
--- 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;