A topological classification of locally constant potentials via zero-temperature measures