Skip to content

OneWire has not been implemented #21

Closed
@bartvstratum

Description

@bartvstratum

There was already a similar issue posted here, but unfortunately the "solution" was a bit vague (in my opinion...).

Following the documentation on PyPi I installed OneWire with:

pip3 install adafruit-circuitpython-onewire

On a Raspberry Pi Zero. Running the example code from that page:

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

results in:

pi@meteo-pi-bvs:~/meteo/pimeteo $ python3 test.py 
Traceback (most recent call last):
  File "test.py", line 15, in <module>
    ow_bus = OneWireBus(board.D2)
  File "/home/pi/.local/lib/python3.7/site-packages/adafruit_onewire/bus.py", line 79, in __init__
    self._ow = busio.OneWire(pin)
  File "/home/pi/.local/lib/python3.7/site-packages/busio.py", line 431, in __init__
    raise NotImplementedError("OneWire has not been implemented")
NotImplementedError: OneWire has not been implemented

I really don't understand the "yah! we dont support onewire thru blinka - you can use the sysfs 1-wire library system instead (we have no way to access 1-wire data outside the kernel)" posted in the previous issue. According to the documentation, this should work on a Raspberry Pi. Then why doesn't it work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions