From 97d39449443bf1e5bbb45e0d2944bdf6ad2906d6 Mon Sep 17 00:00:00 2001 From: jerryneedell Date: Wed, 7 Aug 2024 13:46:40 -0400 Subject: [PATCH] add SPIDevice type to device_drivers.py --- circuitpython_typing/device_drivers.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/circuitpython_typing/device_drivers.py b/circuitpython_typing/device_drivers.py index 707f289..49c2bda 100644 --- a/circuitpython_typing/device_drivers.py +++ b/circuitpython_typing/device_drivers.py @@ -10,6 +10,7 @@ """ from adafruit_bus_device.i2c_device import I2CDevice +from adafruit_bus_device.spi_device import SPIDevice from typing_extensions import Protocol # Safety import for Python 3.7 @@ -18,3 +19,10 @@ class I2CDeviceDriver(Protocol): """Describes classes that are drivers utilizing `I2CDevice`""" i2c_device: I2CDevice + + +# pylint: disable=too-few-public-methods +class SPIDeviceDriver(Protocol): + """Describes classes that are drivers utilizing `SPIDevice`""" + + spi_device: SPIDevice pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy