Add a slider class to update the frequency, and add the accelerometer and magnetometer