Raspberry Pi Stepper Motor Ruby Code