well ad1 = 255 - ad1 make the pot "freeze" (not change number)
Any way we will try that the solution you posted before did work with the ~ but it increased to 1111111111111111 in bin. :O in other word 655xx or something like that.