Gyro code using Hipi