This is an analog memory module. Use the potentiometer to choose a value and use the switch to set it. You can swap the switch with a button or you can use spring-loaded contacts (common negative and signal, which is the switch) to create a "programmable value"