Functions for drawing bitmaps through FatFS.
Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
Data Structures | |
struct | bmpfile_header |
Macros | |
#define | FF_BUFF_SIZE 1536 |
FatFS read buffer size. More... | |
Functions | |
static void | demo_draw_bmpfile (struct gfx_bitmap const *bmp, gfx_coord_t map_x, gfx_coord_t map_y, gfx_coord_t x, gfx_coord_t y) |
Draw bmp file read from FatFS. More... | |
uint8_t | demo_draw_bmpfile_init (void) |
Initialize FatFS and draw interface. More... | |
Variables | |
static uint8_t | demo_bmp_filedata [FF_BUFF_SIZE] |
Bitmap buffer read from file. More... | |
#define FF_BUFF_SIZE 1536 |
FatFS read buffer size.
Referenced by demo_draw_bmpfile().
|
static |
Draw bmp file read from FatFS.
bmp | Pointer to the bitmap. |
map_x | Start pos x. |
map_y | Start pos y. |
x | Width length. |
y | Height length. |
References bmpfile_header::bits, gfx_bitmap::custom, gfx_bitmap::data, demo_bmp_filedata, f_close(), f_open(), f_read(), FA_OPEN_EXISTING, FA_READ, FF_BUFF_SIZE, FR_OK, gfx_copy_progmem_pixels_to_screen(), GFX_FLIP_Y, gfx_set_limits(), gfx_set_orientation(), ili93xx_get_lcd_type(), bmpfile_header::offset, bmpfile_header::width, and gfx_bitmap::width.
Referenced by demo_draw_bmpfile_init().
uint8_t demo_draw_bmpfile_init | ( | void | ) |
Initialize FatFS and draw interface.
References demo_draw_bmpfile(), f_mkfs(), f_mount(), f_opendir(), FR_NO_FILESYSTEM, FR_OK, gfx_set_ext_handler(), and LUN_ID_0.
Referenced by main().
|
static |
Bitmap buffer read from file.
Referenced by demo_draw_bmpfile().