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.
History
Working code to read the data from the X,Y and Z axis of the MLX90393
2018-11-21, by Angath [Wed, 21 Nov 2018 22:27:05 +0000] rev 0
Working code to read the data from the X,Y and Z axis of the MLX90393