added support for the magnometer
started adding magnometer to microcontroller_interface.py