Adding sleep_ms function that allows the device to sleep for n milliseconds if we want too. We are using this for turning on the accelerometer, as it can take up to 5ms to turn on.