Page 1 of 1

SPI Software Pull-up

Posted: Fri Sep 06, 2019 7:13 am
by Anil kumar
Can we use SPI software pull-up in esp32?

Re: SPI Software Pull-up

Posted: Fri Sep 06, 2019 9:33 am
by PeterR
Try:

Code: Select all

gpioConfig.mode         = GPIO_MODE_OUTPUT;
gpioConfig.pull_up_en   = GPIO_PULLUP;
instead of

Code: Select all

gpioConfig.pull_up_en   = GPIO_PULLUP_DISABLE;
I think I tried once and my initialisation hung. I was having a bad day though.
Anyway why would you need to? I am sure that GPIO_MODE_OUTPUT is push pull.