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

File metadata

File hashes

Hashes for adafruit_circuitpython_onewire-2.0.12.tar.gz
Algorithm Hash digest
SHA256 c16800a481181840fe123793b90780cbd81db478fa652ace61469c9839610208
MD5 27b883425ee4e27bf671ff15b01976a3
BLAKE2b-256 6c320ab2ce3a221fceec46dde825a76cffe42691cd1111586b7a7bb24bc6971e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adafruit_circuitpython_onewire-2.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 d3a894a37b2c27ae54a0a2a5c2a716dc9aef0f6ea588d58878ddb2d30e9cc498
MD5 9c34d3a149d6850111e63a08e76bd96c
BLAKE2b-256 2254270f50dce6206d9c626b52030b81f7abc95e8756d70385c5e02b564bd4dd

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