GPIO not working on esp32 pico D4

dominik
Posts: 2
Joined: Thu Jul 05, 2018 7:35 pm

GPIO not working on esp32 pico D4

Postby dominik » Thu Jul 05, 2018 7:45 pm

I bought two esp32 pico D4 boards from https://www.elektor.com/esp32-pico-kit- ... m_store=de

Although I could program the board via platform.io and I get nice output on the serial console all GPIO pins seem to be broken. Regardless of what i write with digitalWrite I always have 0V on the pin. And if I configure the pin to INPUT_PULLUP I always get a 1 from digitalRead even if I connect to gnd.

The same code works perfectly fine on an other esp32 dev board.

Is there something special with the pico D4?

Dominik

Agree007
Posts: 103
Joined: Mon Sep 18, 2017 7:11 pm
Location: Copenhagen

Re: GPIO not working on esp32 pico D4

Postby Agree007 » Fri Jul 06, 2018 7:58 am

My esp32 pico d4 board work fine using Arduino ide and esp-idf, but the logic is inverse, so I have to set the pin low to turn on the internal led.

dominik
Posts: 2
Joined: Thu Jul 05, 2018 7:35 pm

Re: GPIO not working on esp32 pico D4

Postby dominik » Sun Jul 08, 2018 7:34 am

It's resolved. It was a stupid bug on my side. I used the pin no instead of the GPIO no to address the gpio pins. :x

Who is online

Users browsing this forum: No registered users and 106 guests