That is what a pot would do. Pins cannot read resistance directly, though there are ways to do it. The pot outputs a voltage to the pin, and a pin can read a voltage (some pins, look at the datasheet to know which ones.)
A pot would preserve the setting across reboots without the complexity of storing it in bob-volatile memory.
If you want to change it infrequently, the pot could be a trimpot.
yes that is what i thought a pot would't need eeprom to store setting
