convert bldc driver code to use digital reads with the op-amp based zcd