Initialize custom pins for SPI

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Initialize custom pins for SPI

Postby WiFive » Mon Apr 02, 2018 4:51 pm

In Arduino you pass custom pin values in SPI.begin function https://github.com/espressif/arduino-es ... PI.cpp#L37

In esp-idf https://esp-idf.readthedocs.io/en/lates ... aster.html

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

Re: Initialize custom pins for SPI

Postby Deouss » Mon Apr 02, 2018 6:40 pm

Great. Thanks man. Really nice to talk to some helpful dev ;)

k.venugopal
Posts: 1
Joined: Fri Jul 16, 2021 7:01 am

Re: Initialize custom pins for SPI

Postby k.venugopal » Fri Jul 16, 2021 7:04 am

For Arduino IDE,

You can change the pins from pins_arduino.h

Make sure you are changing for necessary board

Below was the path for me
C:\Users\USER\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\variants\doitESP32devkitV1

Sometimes the folder might be hidden. Please do appropriate settings

Who is online

Users browsing this forum: Bing [Bot] and 188 guests