mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/microbit: migrate to ztimer
This commit is contained in:
parent
d71388c58e
commit
2f44452d78
@ -1,4 +1,5 @@
|
||||
ifneq (,$(filter microbit,$(USEMODULE)))
|
||||
USEMODULE += xtimer
|
||||
USEMODULE += ztimer
|
||||
USEMODULE += ztimer_usec
|
||||
USEMODULE += mineplex
|
||||
endif
|
||||
|
@ -19,7 +19,7 @@
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user