mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
Add pin_factory param to all devices
And some docs ...
This commit is contained in:
@@ -28,7 +28,9 @@ class SPIDevice(Device):
|
||||
"""
|
||||
def __init__(self, **spi_args):
|
||||
self._spi = None
|
||||
super(SPIDevice, self).__init__()
|
||||
super(SPIDevice, self).__init__(
|
||||
pin_factory=spi_args.pop('pin_factory', None)
|
||||
)
|
||||
self._spi = self.pin_factory.spi(**spi_args)
|
||||
|
||||
def close(self):
|
||||
|
||||
Reference in New Issue
Block a user