Galileo code for DC motor speed control