Added ESP32-WROOM-DA module to boards.txt (#6361)

Added dual antenna configuration based on the module selection
Added warning to the example on how to use the DA
This commit is contained in:
Pedro Minatel
2022-03-02 13:17:18 +00:00
committed by GitHub
parent c2e5957f35
commit 683dbf3b1b
5 changed files with 224 additions and 2 deletions

View File

@ -24,7 +24,12 @@ void setup()
// Set WiFi to station mode and disconnect from an AP if it was previously connected
WiFi.mode(WIFI_STA);
// Set WiFi dual antenna configuration by passing the GPIO and antenna mode for RX ant TX
/* Attention: This is the manual prodecure for the dual antenna configuration.
* If you choose the ESP32-WROOM-DA module from the Tools -> Board, this configuration
* is not necessary!
*
* Set WiFi dual antenna configuration by passing the GPIO and antenna mode for RX ant TX
*/
err = WiFi.setDualAntennaConfig(GPIO_ANT1, GPIO_ANT1, WIFI_RX_ANT_AUTO, WIFI_TX_ANT_AUTO);
/* For more details on how to use this feature, see our docs: