PersonalVotingMachine/basic-setup/components/u8g2/sys/sdl/draw_tile_8x8/main.c
2020-12-22 14:30:09 +02:00

46 lines
498 B
C

#include "u8x8.h"
u8x8_t u8x8;
uint8_t tile_list[] =
{
0x0f0,
0x0f0,
0x0f0,
0x0f0,
0x0f0,
0x0f0,
0x0f0,
0x0f0,
0x0f0,
0x0f0,
0x0f0,
0x0f0,
0x0f0,
0x0f0,
0x0f0,
0x0f0
};
int main(void)
{
u8x8_Setup_SDL_128x64(&u8x8);
u8x8_InitDisplay(&u8x8);
u8x8_SetFont(&u8x8, u8x8_font_amstrad_cpc_extended_f);
u8x8_DrawString(&u8x8, 0, 0, "draw tile");
u8x8_DrawTile(&u8x8, 0, 1, 2, tile_list);
while( u8g_sdl_get_key() < 0 )
;
return 0;
}