%--- Commands ------------------------------------------------------------------ -define(RW_WRITE, 2#0). -define(RW_READ, 2#1). -define(MS_SAME, 2#0). -define(MS_INCR, 2#1). %=== Accelerometer / Gyroscope ================================================= %--- Bit Descriptions ---------------------------------------------------------- -define(ACC_WHO_AM_I_DEFAULT, 2#01101000). %=== Magnetometer ============================================================== %--- Bit Descriptions ---------------------------------------------------------- -define(MAG_WHO_AM_I_DEFAULT, 2#00111101). %=== Altimeter ================================================================= %--- Bit Descriptions ---------------------------------------------------------- -define(ALT_WHO_AM_I_DEFAULT, 2#10111101).