Is ESP32-DevKitC V4 IO25,26,16,17,0 can not as gpio output?
Posted: Mon Mar 29, 2021 4:38 pm
My board is ESP32-DevKitC V4.(WROVER-B)
this is my code
[Codebox]
void setup()
{
pinMode(25,OUTPUT);
pinMode(26,OUTPUT);
pinMode(16,OUTPUT);
pinMode(17,OUTPUT);
pinMode(0,OUTPUT);
}
void loop()
{
digitalWrite(25, LOW);
digitalWrite(26, LOW);
digitalWrite(16, LOW);
digitalWrite(17, LOW);
digitalWrite(0, LOW);
delay(3000);
digitalWrite(25, HIGH);
digitalWrite(26, HIGH);
digitalWrite(17, HIGH);
digitalWrite(16, HIGH);
digitalWrite(0, HIGH);
delay(3000);
}
IO25,26,16,17,0 not work to control LED...
but other pin can work.
I read some document, IO25 and IO26 default is DAC.
how to disable dac mode, that i can use in gpio mode?
[/Codebox]
this is my code
[Codebox]
void setup()
{
pinMode(25,OUTPUT);
pinMode(26,OUTPUT);
pinMode(16,OUTPUT);
pinMode(17,OUTPUT);
pinMode(0,OUTPUT);
}
void loop()
{
digitalWrite(25, LOW);
digitalWrite(26, LOW);
digitalWrite(16, LOW);
digitalWrite(17, LOW);
digitalWrite(0, LOW);
delay(3000);
digitalWrite(25, HIGH);
digitalWrite(26, HIGH);
digitalWrite(17, HIGH);
digitalWrite(16, HIGH);
digitalWrite(0, HIGH);
delay(3000);
}
IO25,26,16,17,0 not work to control LED...
but other pin can work.
I read some document, IO25 and IO26 default is DAC.
how to disable dac mode, that i can use in gpio mode?
[/Codebox]