I wrote a short post on how to program Bittle's gaits for his reaction to motion detected by the PIR sensorhttps://www.learnwitharobot.com/p/69f062c5-2582-430a-b303-4610bdf5717b
Very detailed documentation and explanation on the codes. Thanks!