This is code that works with the BeagleBone Black for motor control and GPIO controls