예제 #1
0
uint8_t stepCounter(char dir) {


	if(dir == CW) {
		stepPosition++;
		counter++;
	}
	else {
		stepPosition--;
		counter--;
	}
	//keeps the counter within the range of the array
	counter &= 0x03;

	outputStep(counter);
	return counter;

}
예제 #2
0
파일: Output.C 프로젝트: bobkinl/moose
void
Output::outputFailedStep()
{
  if (_output_failed)
    outputStep();
}