using the magnetometer with the launchpad