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.14.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.14.tar.gz.

File metadata

File hashes

Hashes for adafruit_circuitpython_onewire-2.0.14.tar.gz
Algorithm Hash digest
SHA256 44192e44d07f1edef1890025668d9659667b0357f012b47d46487501d412ebda
MD5 b2285cd1390cd6e3e69f8480495c71b1
BLAKE2b-256 eb21a03537a26f0165e52e8cfbb550359c4845781239334517b8bc4f133f3c27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adafruit_circuitpython_onewire-2.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 b58f92df2a8346ccec1989e47841a6776c17a1766f48a1900dd4b14d9b0b5211
MD5 399073772137e7631eac61f58975b7ab
BLAKE2b-256 0da04358c9c2ead3155c7f94256da6a1c4c2feccd021c232191bb117bc02f7a1

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