binary input from analog potentiometer?

Here is the complete code as an attachment - hope this is ok

Thanks

LA_Step_Index_11_23_17_for_upload.ino (19.3 KB)