QUERY · ISSUE
machine.SPI(): add CS/NSS pin
It would be nice if CS/NSS pin for SPI could be driven by machine.SPI() itself. Manual toggling in user application slows it down.
CANDIDATE · ISSUE
esp8266: no outout from SPI
port-esp8266
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?