Switch AVR libc _delay_ms usage to Arduino delay function for better compatibility with non-AVR boards.