Welcome. (Really! We could do with more rocket scientist around here.)
To be fair, you have not provided much information about the Picaxe you are using and the hardware you have to play with.
My pseudo code will get you started. It can be easily expanded into Picaxe BASIC. Do you want to do that yourself? I don't have an MPU-5060 to test. (My method is usually - Try something, watch what happens, learn from it, try something else...)
Did you read the Picaxe manual?
P.S.
Coding is easy. It's the hardware that's tricky.
To be fair, you have not provided much information about the Picaxe you are using and the hardware you have to play with.
My pseudo code will get you started. It can be easily expanded into Picaxe BASIC. Do you want to do that yourself? I don't have an MPU-5060 to test. (My method is usually - Try something, watch what happens, learn from it, try something else...)
Did you read the Picaxe manual?
P.S.
Coding is easy. It's the hardware that's tricky.
Last edited: