X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/acab7ef40726648f1bbebd95c8d9a694b6b84619..refs/heads/typing-micropython:/src/busio.py diff --git a/src/busio.py b/src/busio.py old mode 100755 new mode 100644 index 1fd1532..dd748a5 --- a/src/busio.py +++ b/src/busio.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries +# +# SPDX-License-Identifier: MIT """ `busio` - Bus protocol support like I2C and SPI ================================================= @@ -489,36 +492,3 @@ class UART(Lockable): def write(self, buf): """Write to the UART from a buffer""" return self._uart.write(buf) - - -class OneWire: - """ - Stub class for OneWire, which is currently not implemented - """ - - def __init__(self, pin): - raise NotImplementedError("OneWire has not been implemented") - - def deinit(self): - """ - Deinitialize the OneWire bus and release any hardware resources for reuse. - """ - raise NotImplementedError("OneWire has not been implemented") - - def reset(self): - """ - Reset the OneWire bus and read presence - """ - raise NotImplementedError("OneWire has not been implemented") - - def read_bit(self): - """ - Read in a bit - """ - raise NotImplementedError("OneWire has not been implemented") - - def write_bit(self, value): - """ - Write out a bit based on value. - """ - raise NotImplementedError("OneWire has not been implemented")