Image from Original Post so we don't have to download it. See this Image Guide
...R Stepper Motor Basics Simple Stepper Code