One button dimming up and down

I found another solution, even better for my goal. I’ll used a potentiometer and works perfect.

Analog button to control brightness? - Hardware - WLED