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]
Is ESP32-DevKitC V4 IO25,26,16,17,0 can not as gpio output?
-
- Posts: 827
- Joined: Mon Jul 22, 2019 3:20 pm
Re: Is ESP32-DevKitC V4 IO25,26,16,17,0 can not as gpio output?
https://docs.espressif.com/projects/esp ... vkitc.html
GPIO 16/17 are used by psram. Using these pins will crash your device.
GPIO 0 has a capacitor and a button attached which likely are causing your problem. Not a good choice for an led anyhow, since it puts the device into programming mode at boot.
GPIO 25/26 should be available. Are you sure you don't have something attached there?
GPIO 16/17 are used by psram. Using these pins will crash your device.
GPIO 0 has a capacitor and a button attached which likely are causing your problem. Not a good choice for an led anyhow, since it puts the device into programming mode at boot.
GPIO 25/26 should be available. Are you sure you don't have something attached there?
Who is online
Users browsing this forum: No registered users and 60 guests