An example demonstrating the usage of the default FXOS8700CQ firmware configuration by Thomas Murphy. Uses interrupts to control flow and to cue access to the peripheral.
Configure your serial terminal as 115200, 8, none, 1, Xon/Xoff. If you don't set flow control, your terminal may spit out large piles of junk much more slowly that it was supposed to receive data.