SPI as slave.

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
StuartStardust
Posts: 1
Joined: Sun Mar 03, 2019 12:22 pm

SPI as slave.

Post by StuartStardust » Sun Mar 03, 2019 12:39 pm

Hello,
Sorry, but I am new to upy.
Is there an option to run SPI as slave on the ESP32?
Or just use a the readinto basted on an interrupt?

I have 2 ESP32, and would like to use SPI for them to talk together, as the HW SPI is super fast.
I already have the master sending data, but do not know how to make the slave working.

Any help or pointer would be appreciated.

Alternative could be I2C, but is that not more heavy on the CPU?

Thanks.

//StuartStardust

jickster
Posts: 629
Joined: Thu Sep 07, 2017 8:57 pm

Re: SPI as slave.

Post by jickster » Sun Mar 03, 2019 8:16 pm

StuartStardust wrote:Hello,
Sorry, but I am new to upy.
Is there an option to run SPI as slave on the ESP32?
Or just use a the readinto basted on an interrupt?

I have 2 ESP32, and would like to use SPI for them to talk together, as the HW SPI is super fast.
I already have the master sending data, but do not know how to make the slave working.

Any help or pointer would be appreciated.

Alternative could be I2C, but is that not more heavy on the CPU?

Thanks.

//StuartStardust

It has a C interface for slave
https://docs.espressif.com/projects/esp ... slave.html


But not implement in python
https://github.com/micropython/micropython/issues/3700




Sent from my iPhone using Tapatalk Pro

Post Reply