Before set the microstep resolution, the register of mstep_reg_select need to be wrote to 'High' (0: Microstep resolution selected by pins MS1, MS2. 1: Microstep resolution selected by MSTEP register). Then the microsteps of 256 128, 64, 32, 16, 8, 4, 2, FULLSTEP can be set.