Thanks for your reply. I'll have another play with it soon. But I think you are right.
I was actually trying to get it working in Energia first, to help me write it using the TivaWare libraries.
I can get the x, y and z to change with different movements, but with this code, I seem to have a similar issue. However,
it seems to be around 65535 with no movement, and peak at 0 with lots of movement. So it's obviously a similar issue. And
I actually think that y and z were always reading the same value.
Anyway, I'll have a play and post an update.
#include <stdbool.h>
#incl