This code will read the data from the X,Y and Z axis of the MLX90393 Magnetometer and display it on a serial monitor. Remember to check the solder links on the I2C lines on your Nucleo as this can interfere on certain boards.

Dependencies:   mbed

Auto generated API documentation and code listings for Read_Magnetometer_MLX90393

Code

main.cpp [code]