ATOM MATRIX false button press detected



  • M5.update();
    if (M5.Btn.wasPressed())
    

    With no one touching the button the code thinks a button was pressed, it could be minutes, it could be hours. I have tried multiple MATRIX and they all do it. I do have serial logging and attached to a PC when this happens if that matters.



  • Added
    gpio_pullup_en(GPIO_NUM_32);
    Hasn't happened since.