Senior project stepper motor control code for ATMEGA168