资 源 简 介
通过MP(代表其中一个P口)的高4位来控制,AA`BB`-4,5,6,7脚。12细分,没行数组里面分4对,每对数第一个加到P口控制电流方向,第二个数控制通电时间。正转AA`-BB`-A`A-B`B,数组由1到12行的读取,反转B`B-A`A-BB`-AA`,数组由12到1行的读取。参数POWER表示电机启动还是不启动,DIRECT参数表示方向,SPEED表示速度等级,每项通电时间用数组中的植/SPEED。本程序没考虑要走多少步的情况,调用一次就走一步。-Through the MP (on behalf of one of P I) of high 4 to control, AA `BB`-4,5,6,7 feet. 12 segments, no line inside the sub-array of four pairs, each of the P added to the number of the first current direction of population control, the second time the number of control power. Are transferred AA `-BB`-A `AB` B, the array from 1-12 line read, reverse B `BA` A-BB `-AA`, array 12-1 by the line read. POWER express motor parameters activated or not activated, DIRECT express direction parameter, SPEED express speed grades, each time power array sik/SPEED. This procedure did not consider how to go step-by-step situation, call a step away.