Skip to content
temperature sensors & more!
Python
Branch: master
Clone or download
kattni Merge pull request #15 from adafruit/dherrada-patch-1
Removed building locally section from README, replaced with documenta…
Latest commit fc35100 Oct 21, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
adafruit_onewire because line too long Nov 5, 2018
docs
examples
.gitignore
.pylintrc ignore the board module imports in .pylintrc Aug 25, 2018
.readthedocs.yml
.travis.yml
CODE_OF_CONDUCT.md
LICENSE
README.rst
requirements.txt
setup.py

README.rst

Introduction

Documentation Status Discord Build Status

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.

Installing from PyPI

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:

pip3 install adafruit-circuitpython-onewire

To install system-wide (this may be required in some cases):

sudo pip3 install adafruit-circuitpython-onewire

To install in a virtual environment in your current project:

mkdir project-name && cd project-name
python3 -m venv .env
source .env/bin/activate
pip3 install adafruit-circuitpython-onewire

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))

Contributing

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

Documentation

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

You can’t perform that action at this time.