A sample code

Read the gyro - send it into the speaker - and add a little wait so that you can hear the sound