Skip to content

esp8266: no outout from SPI #2098

@deshipu

Description

@deshipu

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions