Here are two libraries which can be used to access Maxim/Dallas OneWire devices like DS1820 temperature sensor. Most of code is freely available from Maxim/Dallas, I have only added Makefiles and filled in device-specific things like which GPIO pin on microcontroller is connected to OneWire bus.
![ds1820.jpg](https://stonepile.fi/wp-content/uploads/2012/08/wpid-2012-08-09-21.17.29-1.jpg)
This has been tested with Olimex LPC-E2129 board (GPIO pin 24) and old Embedded Artists ethernet quickstart board (GPIOpin 26). Olimex board has all necessary interfacing electronics and bus connector. For these boards, the library assumes that “lpc2xxx” Pico]OS is used.
Library works also with “unix” port.
Source code is available at Github.