Inverting value of potenciometer