1
0
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:
Alexandre Abadie 2022-04-12 09:36:31 +02:00
parent b038e47b5e
commit d5beea3551
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -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");