Page 1 of 1

Using GPIO 25, 26 as digital IN?

Posted: Sun Jul 08, 2018 7:55 pm
by Greg Corson
I'm having a problem where connecting some signals to GPIO 25 and 26 seems to cause my I2C to become unstable.

I saw some messages in the (not arduino) parts of the forum that you have to turn off DAC1 and DAC2 to use these GPIO for input. Does this have to be done under arduino as well? If so, how do you do it?

Right now I just use

pinMode(25, INPUT);

and read them with

digitalRead(25);

Do I need to do something to turn off DAC1 & 2 to use GPIO 25 and 26 as input?

Re: Using GPIO 25, 26 as digital IN?

Posted: Wed Oct 09, 2019 6:45 am
by bobo1974
I am running into the same issue right now.
I tried to add: dac_output_disable(DAC_GPIO26_CHANNEL);
But same result.

Did you find a solution ? Thanks

Re: Using GPIO 25, 26 as digital IN?

Posted: Thu Oct 10, 2019 8:02 pm
by Brain Scientist
Make sure WiFi is off.