diff --git a/boards/common/microbit/Makefile.dep b/boards/common/microbit/Makefile.dep index aede097b46..7b743b0ee9 100644 --- a/boards/common/microbit/Makefile.dep +++ b/boards/common/microbit/Makefile.dep @@ -1,4 +1,5 @@ ifneq (,$(filter microbit,$(USEMODULE))) - USEMODULE += xtimer + USEMODULE += ztimer + USEMODULE += ztimer_usec USEMODULE += mineplex endif diff --git a/boards/common/microbit/microbit.c b/boards/common/microbit/microbit.c index 497fe473e2..46124a8a7d 100644 --- a/boards/common/microbit/microbit.c +++ b/boards/common/microbit/microbit.c @@ -19,7 +19,7 @@ */ #include -#include "xtimer.h" +#include "ztimer.h" #include "board.h" #include "microbit.h" @@ -189,7 +189,7 @@ static void shift_next(uint8_t *cur, const uint8_t *next, uint32_t delay) cur[(r * COLS) + COLS - 1] = next[(r * COLS) + i]; } microbit_matrix_set_raw((uint8_t *)cur); - xtimer_usleep(delay); + ztimer_sleep(ZTIMER_USEC, delay); } }