pub fn delay_millis(&self, mut ms: u32) {
        const MICROS_PER_MILLI: u32 = 1_000;
        const MAX_MILLIS: u32 = u32::MAX / MICROS_PER_MILLI;

        // Avoid potential overflow if milli -> micro conversion is too large
        while ms > MAX_MILLIS {
            ms -= MAX_MILLIS;
            self.delay_micros(MAX_MILLIS * MICROS_PER_MILLI);
        }

        self.delay_micros(ms * MICROS_PER_MILLI);
    }
Delay for at least the number of specific milliseconds.
esp-lp-hal/src/delay.rs