Hi,
with ESP32 based boards, esp32_dac component works fine. But with I’m getting a bit weird errors with ESP32-S2 boards.
With board lolin_s2_mini and dac output pin GPIO25, i’m getting error - The pin GPIO25 is not usable on ESP32-S2s. That’s correct, since ESP32-S2 can use GPIO17&GPIO18 for dac output only.
But when I update update pin to GPIO17 or GPIO18, compilation fails with Unknown value ‘17’, valid options are ‘25’, ‘26’.
How can I convince esphome to allow me to use dac on ESP32-S2 boards ?
What’s the correct way to deal with this? Should I submit pull request with esp32s2_dac component with updated pins, or is it better to update esp32_dac component ?
This is an alternative base framework for ESP32 chips, and recommended for variants of the ESP32 like ESP32S2, ESP32S3, ESP32C3 and single-core ESP32 chips.