how to use the hardware SPI?

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
User avatar
cheche
Posts: 2
Joined: Thu Sep 07, 2017 1:56 am

how to use the hardware SPI?

Post by cheche » Thu Sep 07, 2017 2:24 am

Hello everyone!
My name is Cheche, I'm from China, I'm an amateur electronic fan, I have a question to ask, I have a LCD with ILI9341 chip, but using softSPI is too slow,so, Can I use ESP32's hardware SPI?(machine,SPI is softSPI ? right?)
Thanks!
By the way, I'm not very good at English! :D

User avatar
rdagger
Posts: 143
Joined: Tue Feb 28, 2017 6:16 pm
Contact:

Re: how to use the hardware SPI?

Post by rdagger » Sat Nov 11, 2017 7:40 am

Did you figure out the hardware SPI?

slzatz
Posts: 92
Joined: Mon Feb 09, 2015 1:09 am

Re: how to use the hardware SPI?

Post by slzatz » Sat Nov 11, 2017 2:19 pm

I have experience with the hardware SPI support that the @loboris port Micropython_ESP32 provides and it works great and you don't have to be using psRAM to use that port. Also, it has a display module display module that supports the ILI9341.

MrSurly
Posts: 7
Joined: Wed Apr 19, 2017 6:08 pm

Re: how to use the hardware SPI?

Post by MrSurly » Sun Nov 12, 2017 3:11 am

cheche wrote:
Thu Sep 07, 2017 2:24 am
Hello everyone!
My name is Cheche, I'm from China, I'm an amateur electronic fan, I have a question to ask, I have a LCD with ILI9341 chip, but using softSPI is too slow,so, Can I use ESP32's hardware SPI?(machine,SPI is softSPI ? right?)
Thanks!
By the way, I'm not very good at English! :D
Hi Cheche,

The hardware SPI is enabled by passing a hardware ID as the first parameter.

machine.SPI(1,miso = machine.Pin(12) ... )

If you use the "native" pin, the you can get much higher speeds.

See my post here: viewtopic.php?f=18&t=4041&p=23178#p23178

Post Reply