This module provides empty read/write functions to a null device (framebuffer in RAM), removing the need for an actual display or controller during testing, and enabling the use of most XMEGA boards.
Functions | |
void | gfx_mono_null_init (void) |
Initialize NULL driver. More... | |
static uint8_t | framebuffer [GFX_MONO_LCD_FRAMEBUFFER_SIZE] |
#define gfx_mono_draw_circle | ( | x, | |
y, | |||
radius, | |||
color, | |||
octant_mask | |||
) |
Referenced by draw_circle(), and init_display().
#define gfx_mono_draw_filled_circle | ( | x, | |
y, | |||
radius, | |||
color, | |||
quadrant_mask | |||
) |
#define gfx_mono_draw_filled_rect | ( | x, | |
y, | |||
width, | |||
height, | |||
color | |||
) |
Referenced by gfx_mono_draw_char(), gfx_mono_menu_init(), gfx_mono_spinctrl_draw(), gfx_mono_spinctrl_draw_button(), gfx_mono_spinctrl_draw_indicator(), gfx_mono_spinctrl_draw_spin_indicator(), gfx_mono_spinctrl_spincollection_show(), main_task(), menu_draw(), setup_board(), and terminal_task().
#define gfx_mono_draw_horizontal_line | ( | x, | |
y, | |||
length, | |||
color | |||
) | gfx_mono_generic_draw_horizontal_line(x, y, length, color) |
Referenced by gfx_mono_generic_draw_filled_rect(), gfx_mono_generic_draw_rect(), and main_task().
#define gfx_mono_draw_line | ( | x1, | |
y1, | |||
x2, | |||
y2, | |||
color | |||
) | gfx_mono_generic_draw_line(x1, y1, x2, y2, color) |
Referenced by draw_cross(), graph_task(), and setup_board().
#define gfx_mono_draw_pixel | ( | x, | |
y, | |||
color | |||
) | gfx_mono_framebuffer_draw_pixel(x, y, color) |
#define gfx_mono_draw_rect | ( | x, | |
y, | |||
width, | |||
height, | |||
color | |||
) | gfx_mono_generic_draw_rect(x, y, width, height, color) |
Referenced by highlight_square(), and main_task().
#define gfx_mono_draw_vertical_line | ( | x, | |
y, | |||
length, | |||
color | |||
) | gfx_mono_generic_draw_vertical_line(x, y, length, color) |
Referenced by gfx_mono_generic_draw_filled_circle(), gfx_mono_generic_draw_rect(), graph_task(), and main_task().
#define gfx_mono_get_byte | ( | page, | |
column | |||
) | gfx_mono_framebuffer_get_byte(page, column) |
#define gfx_mono_get_page | ( | data, | |
page, | |||
column, | |||
width | |||
) | gfx_mono_framebuffer_get_page(data, page, column, width) |
#define gfx_mono_get_pixel | ( | x, | |
y | |||
) | gfx_mono_framebuffer_get_pixel(x, y) |
#define gfx_mono_init | ( | ) | gfx_mono_null_init() |
Referenced by main().
#define GFX_MONO_LCD_FRAMEBUFFER_SIZE |
#define GFX_MONO_LCD_HEIGHT 32 |
#define GFX_MONO_LCD_PAGES |
Referenced by gfx_mono_ssd1306_init().
#define GFX_MONO_LCD_PIXELS_PER_BYTE 8 |
#define GFX_MONO_LCD_WIDTH 128 |
Referenced by gfx_mono_framebuffer_draw_pixel(), gfx_mono_framebuffer_get_byte(), gfx_mono_framebuffer_get_page(), gfx_mono_framebuffer_get_pixel(), gfx_mono_framebuffer_put_byte(), gfx_mono_framebuffer_put_page(), gfx_mono_generic_draw_horizontal_line(), gfx_mono_menu_init(), gfx_mono_spinctrl_draw(), gfx_mono_spinctrl_draw_button(), gfx_mono_spinctrl_draw_spin_indicator(), gfx_mono_spinctrl_spincollection_show(), gfx_mono_ssd1306_draw_pixel(), gfx_mono_ssd1306_get_pixel(), gfx_mono_ssd1306_init(), main_task(), and menu_draw().
#define gfx_mono_mask_byte | ( | page, | |
column, | |||
pixel_mask, | |||
color | |||
) | gfx_mono_framebuffer_mask_byte(page, column, pixel_mask, color) |
Referenced by gfx_mono_generic_draw_vertical_line().
#define gfx_mono_put_bitmap | ( | bitmap, | |
x, | |||
y | |||
) | gfx_mono_generic_put_bitmap(bitmap, x, y) |
#define gfx_mono_put_byte | ( | page, | |
column, | |||
data | |||
) | gfx_mono_framebuffer_put_byte(page, column, data) |
#define gfx_mono_put_framebuffer | ( | ) | ; |
#define gfx_mono_put_page | ( | data, | |
page, | |||
column, | |||
width | |||
) | gfx_mono_framebuffer_put_page(data, page, column, width) |
Referenced by gfx_mono_generic_put_bitmap().
void gfx_mono_null_init | ( | void | ) |
Initialize NULL driver.
References framebuffer, and gfx_mono_set_framebuffer().
|
static |
Referenced by gfx_mono_null_init(), gfx_mono_set_framebuffer(), and gfx_mono_ssd1306_init().