Analog button to control brightness?

Pot ends to 3.3v and ground, center to an analog input.

All pin numbers in the UI are GPIO.