Skip to main content

CircuitPython OneWire helper library for 1-wire bus devices.

Project description

Introduction

Documentation Status Discord Build Status Code Style: Ruff

Classes for use in communicating with devices on a 1-Wire bus.

Dependencies

This driver depends on:

Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.

Note: This library does not work on the Raspberry Pi as there is no kernel interface for it

Usage Example

import board
from adafruit_onewire.bus import OneWireBus
ow_bus = OneWireBus(board.D2)
devices = ow_bus.scan()
for d in devices:
    print("ROM={}\tFamily=0x{:02x}".format(d.rom, d.family_code))

Documentation

API documentation for this library can be found on Read the Docs.

For information on building library documentation, please check out this guide.

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adafruit_circuitpython_onewire-2.0.13.tar.gz (23.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file adafruit_circuitpython_onewire-2.0.13.tar.gz.

File metadata

File hashes

Hashes for adafruit_circuitpython_onewire-2.0.13.tar.gz
Algorithm Hash digest
SHA256 9f17d3fb152fb0a759c38a3b5f4113bf0429680e2b844d32ee5fd94fb8fdc690
MD5 d150f61b592caccbf4e2bc1bb2d8c094
BLAKE2b-256 026a94b7211a7c3026f9c6d3b9f543bf9c4a6aedb382acd6532fd9592504dcad

See more details on using hashes here.

File details

Details for the file adafruit_circuitpython_onewire-2.0.13-py3-none-any.whl.

File metadata

File hashes

Hashes for adafruit_circuitpython_onewire-2.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 a773fca7c66ef8cbf4d875cbaa3e82b51ceae30cb5cedef977237efd6c007086
MD5 758a041386be6bdd4c1881721310e302
BLAKE2b-256 af11ac85c838c7663e662847412a838b4c68d52530909654b8d529aceecf04ec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page