The machine.SPI interface doesn't seem to output anything on the gpio pins when spi.write() is called.
Test program:
>>> from machine import SPI, Pin
>>> spi = SPI(miso=Pin(12), mosi=Pin(13), sck=Pin(14))
>>> spi.write("abc")
Expected result: activity on the gpio pins 12, 13 and 14 corresponding to the data being sent.
Actual result: the pins all remain high impedance.
Perhaps I'm doing something wrong, or forgot to call something first?
The
machine.SPIinterface doesn't seem to output anything on the gpio pins whenspi.write()is called.Test program:
Expected result: activity on the gpio pins 12, 13 and 14 corresponding to the data being sent.
Actual result: the pins all remain high impedance.
Perhaps I'm doing something wrong, or forgot to call something first?