drivers/dsp0401: convert to xtimer_msleep()
This commit is contained in:
parent
9050fcb547
commit
044e0a22fb
@ -238,12 +238,12 @@ void dsp0401_scroll_text(const dsp0401_t *dev, char *text, uint16_t delay)
|
|||||||
for (unsigned i = 0; i < strlen(text); ++i) {
|
for (unsigned i = 0; i < strlen(text); ++i) {
|
||||||
_shift_char(dev, text[i]);
|
_shift_char(dev, text[i]);
|
||||||
_latch(dev);
|
_latch(dev);
|
||||||
xtimer_usleep((uint32_t)(delay * US_PER_MS));
|
xtimer_msleep(delay);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (unsigned i = 0; i < MOD_COUNT * 4; ++i) {
|
for (unsigned i = 0; i < MOD_COUNT * 4; ++i) {
|
||||||
_shift_char(dev, ' ');
|
_shift_char(dev, ' ');
|
||||||
_latch(dev);
|
_latch(dev);
|
||||||
xtimer_usleep((uint32_t)(delay * US_PER_MS));
|
xtimer_msleep(delay);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user