ESP32 GPIO25 and GPIO26 Function

Issue #324 resolved
梁帅 created an issue

The GPIO25 and GPIO26 of the ESP32 chip (and ESP32-PICO-D4) are DAC pins. By default, there is no PWM output in MicroBlocks. Can I set the function of the pin by myself?

Comments (3)

  1. John Maloney repo owner

    You can't change that behavior from MicroBlocks, but if you build the firmware yourself you can comment out these lines (around line 900) in ioPrims.cpp:

            if ((25 == pinNum) || (26 == pinNum)) { // ESP32 DAC pins
                dacWrite(pinNum, value);
                return;
            }
    
  2. Log in to comment