← index #2509Issue #2098
Off-topic · high · value 0.474
QUERY · ISSUE

machine.SPI(): add CS/NSS pin

openby dmartauzopened 2016-10-12updated 2018-11-20

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

closedby deshipuopened 2016-05-22updated 2016-06-05
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?

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied