Rotary encoder usermod: SW on PIN 0 (boot)

hello,
I’m trying to configure the rotary encoder usermod to use the PIN0 (boot) as SW PIN
the IDE is ok, the code compiles well with Visualstudio and platformio.
i successfully setted up the platformio_override.ini file with all the customization

  -D USERMOD_ROTARY_ENCODER_UI
  -D ENCODER_DT_PIN=21
  -D ENCODER_CLK_PIN=23
  -D ENCODER_SW_PIN=0

unfortunatly:

  • the pushbutton seems to be not working
  • when I try to set SW pin to 0 the box is RED and no changes are applied
    Screenshot

Could you help me please?

Replace default button GPIO as well.

While you compile add

  -D BTNPIN=-1