adafruit / Adafruit_Blinka

Add CircuitPython hardware API and libraries to MicroPython & CPython devices
https://learn.adafruit.com/circuitpython-on-raspberrypi-linux
MIT License
439 stars 327 forks source link

Update SPI to work with ReadableBuffers #719

Closed makermelissa closed 9 months ago

makermelissa commented 9 months ago

Fixes #509. Using a boolean truthy statement wasn't working with Numpy Buffers, but did work using tuples and such. Using len() works with all the types of buffers.