i don't know what program are you used. you could use our already provide example code. in the Arduino。
There is no good solution to this problem in UIFow. If it is in Arduino, you can refer to the issue mentioned in the issues to modify Digital read to Analog read
See this page. You will learn about all ESP pins. Whether to support ADC / DAC
yeah...this bug was from the ESP IDF. As you see in the Github issues
@thbonk yes use Pahub(the 1 to 6 Expansion Unit) would be a best choice to connect more than one ENV unit to a M5 Stack device.
you can refer 6060 product document.