Skip to content

Lightweight 1-Wire Protocol C Library for Raspberry Pi Pico SDK

License

Notifications You must be signed in to change notification settings

tjko/pico-1wire-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pico-1wire-lib

Lightweight 1-Wire Protocol Library for Raspberry Pi Pico SDK

This library implements basic 1-Wire protocol functionality to enable use of some common 1-Wire sensors more easily from programs written using Raspberry Pi Pico SDK.

This library borrows some ideas from following other 1-Wire libraries:

Supported Devices

List of currently supported devices (devices not on the list may or may not work):

Device Type Notes
DS18S20 Temperature sensor (9bit)
DS1822 Temperature sensor (9-12bit)
DS18B20 Temperature sensor (9-12bit)
DS1825 Temperature sensor (9-12bit)
DS28EA00 Temperature sensor (9-12bit) Currently no support for IO features on this chip.
MAX31820 Temperature sensor (9-12bit)
MAX31826 Temperature sensor (9-12bit) Currently no support for EEPROM on this chip.

Usage

Including pico-1wire-lib in a project

First, get the library (this example adds it as a submodule to existing repository):

$ mkdir libs
$ cd libs
$ git submodule add https://github.com/tjko/pico-1wire-lib.git

Then to use this library, include it in your CMakeLists.txt file:

# Include pico-1wire-lib library.
add_subdirectory(libs/pico-1wire-lib)

Also add pico_1wire_lib in target_link_libraries statement:

target_link_libraries(myprogram PRIVATE
  ...
  pico_1wire_lib
  )

Examples

See pico-1wire-lib example

About

Lightweight 1-Wire Protocol C Library for Raspberry Pi Pico SDK

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published