mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 22:43:50 +01:00
tests/disp_dev: use width/height defines from riot_logo.h
This commit is contained in:
parent
b038e47b5e
commit
d5beea3551
@ -64,7 +64,12 @@ int main(void)
|
||||
disp_dev_map(disp_dev->dev, 0, max_width - 1, y, y, display_buffer);
|
||||
}
|
||||
|
||||
disp_dev_map(disp_dev->dev, 95, 222, 85, 153, (const uint16_t *)picture);
|
||||
disp_dev_map(
|
||||
disp_dev->dev,
|
||||
((max_width - RIOT_LOGO_WIDTH) >> 1), ((max_width + RIOT_LOGO_WIDTH) >> 1) - 1,
|
||||
((max_height - RIOT_LOGO_HEIGHT) >> 1), ((max_height + RIOT_LOGO_HEIGHT) >> 1) - 1,
|
||||
(const uint16_t *)picture
|
||||
);
|
||||
|
||||
puts("SUCCESS");
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user