Thanks for your answer, but I'm not grasping this sentence
But the potentiometer should come first (only two legs), limiting the current, and then the led
Do you mean to supply an external 3.3V to the LED and serialize the wiper resistance to the LED?