Closed caternuson closed 5 years ago
woops - yeah, you can initialize the frequency but not set/get it after - wanna do that?
Just to clarify - should be a read only property.
Adafruit CircuitPython 4.1.0 on 2019-08-02; Adafruit ItsyBitsy M4 Express with samd51g19
>>> import board
>>> spi = board.SPI()
>>> spi.frequency
250000
>>> spi.frequency = 6000000
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'SPI' object has no attribute 'frequency'
>>>
I think setting requires using configure()
, via baudrate
:
https://circuitpython.readthedocs.io/en/4.x/shared-bindings/busio/SPI.html#busio.SPI.configure
yep!
Added with #164
From CircuitPython API: https://circuitpython.readthedocs.io/en/4.x/shared-bindings/busio/SPI.html#busio.SPI.frequency
On a CircuitPython board:
On a Blinka board (RPi):