Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: STM32F103C8T6_DS18B20 stm32f103c8t6-ds18b20
Fork of DS1820 by
Revision 19:b9d69bad8185, committed 2018-01-25
- Comitter:
- deece
- Date:
- Thu Jan 25 07:33:48 2018 +0000
- Parent:
- 17:045f96704cc6
- Commit message:
- Fix timings
Changed in this revision
DS1820.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/DS1820.cpp Fri Jan 12 00:38:01 2018 +0000 +++ b/DS1820.cpp Thu Jan 25 07:33:48 2018 +0000 @@ -15,8 +15,6 @@ DS1820::DS1820 (PinName data_pin) : _datapin(data_pin) { int byte_counter; - tracer = 1; - for(byte_counter=0;byte_counter<9;byte_counter++) RAM[byte_counter] = 0x00; @@ -61,7 +59,7 @@ wait_us(57); // keep data line low } onewire_input(_datapin); - wait_us(50); + wait_us(60); } void DS1820::onewire_byte_out(char data) { // output data character (least sig bit first).