Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

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.

Macros

#define gfx_mono_draw_circle(x, y, radius, color, octant_mask)
 
#define gfx_mono_draw_filled_circle(x, y, radius, color, quadrant_mask)
 
#define gfx_mono_draw_filled_rect(x, y, width, height, color)
 
#define gfx_mono_draw_horizontal_line(x, y, length, color)   gfx_mono_generic_draw_horizontal_line(x, y, length, color)
 
#define gfx_mono_draw_line(x1, y1, x2, y2, color)   gfx_mono_generic_draw_line(x1, y1, x2, y2, color)
 
#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)
 
#define gfx_mono_draw_vertical_line(x, y, length, color)   gfx_mono_generic_draw_vertical_line(x, y, length, color)
 
#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()
 
#define GFX_MONO_LCD_FRAMEBUFFER_SIZE
 
#define GFX_MONO_LCD_HEIGHT   32
 
#define GFX_MONO_LCD_PAGES
 
#define GFX_MONO_LCD_PIXELS_PER_BYTE   8
 
#define GFX_MONO_LCD_WIDTH   128
 
#define gfx_mono_mask_byte(page, column, pixel_mask, color)   gfx_mono_framebuffer_mask_byte(page, column, pixel_mask, color)
 
#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)
 

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 
)
Value:
gfx_mono_generic_draw_circle(x, y, radius, color, \
octant_mask)
void gfx_mono_generic_draw_circle(gfx_coord_t x, gfx_coord_t y, gfx_coord_t radius, enum gfx_mono_color color, uint8_t octant_mask)
Draw an outline of a circle or arc (generic implementation).
Definition: gfx_mono_generic.c:301

Referenced by draw_circle(), and init_display().

#define gfx_mono_draw_filled_circle (   x,
  y,
  radius,
  color,
  quadrant_mask 
)
Value:
color, quadrant_mask)
void gfx_mono_generic_draw_filled_circle(gfx_coord_t x, gfx_coord_t y, gfx_coord_t radius, enum gfx_mono_color color, uint8_t quadrant_mask)
Draw a filled circle or sector (generic implementation).
Definition: gfx_mono_generic.c:390
#define gfx_mono_draw_filled_rect (   x,
  y,
  width,
  height,
  color 
)
Value:
gfx_mono_generic_draw_filled_rect(x, y, width, height, \
color)
void gfx_mono_generic_draw_filled_rect(gfx_coord_t x, gfx_coord_t y, gfx_coord_t width, gfx_coord_t height, enum gfx_mono_color color)
Draw a filled rectangle (generic implementation).
Definition: gfx_mono_generic.c:269

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_co_routine(), main_task(), menu_draw(), setup_board(), terminal_co_routine(), and terminal_task().

#define gfx_mono_draw_horizontal_line (   x,
  y,
  length,
  color 
)    gfx_mono_generic_draw_horizontal_line(x, y, length, color)
#define gfx_mono_draw_line (   x1,
  y1,
  x2,
  y2,
  color 
)    gfx_mono_generic_draw_line(x1, y1, x2, y2, color)
#define gfx_mono_draw_rect (   x,
  y,
  width,
  height,
  color 
)    gfx_mono_generic_draw_rect(x, y, width, height, color)
#define gfx_mono_draw_vertical_line (   x,
  y,
  length,
  color 
)    gfx_mono_generic_draw_vertical_line(x, y, length, color)
#define gfx_mono_get_page (   data,
  page,
  column,
  width 
)    gfx_mono_framebuffer_get_page(data, page, column, width)
#define gfx_mono_get_pixel (   x,
 
)    gfx_mono_framebuffer_get_pixel(x, y)
#define gfx_mono_init ( )    gfx_mono_null_init()

Referenced by main().

#define GFX_MONO_LCD_FRAMEBUFFER_SIZE
Value:
#define GFX_MONO_LCD_PIXELS_PER_BYTE
Definition: gfx_mono_null.h:60
#define GFX_MONO_LCD_HEIGHT
Definition: gfx_mono_null.h:59
#define GFX_MONO_LCD_WIDTH
Definition: gfx_mono_null.h:58
#define GFX_MONO_LCD_PAGES
Value:
#define GFX_MONO_LCD_PIXELS_PER_BYTE
Definition: gfx_mono_null.h:60
#define GFX_MONO_LCD_HEIGHT
Definition: gfx_mono_null.h:59

Referenced by gfx_mono_ssd1306_init().

#define gfx_mono_mask_byte (   page,
  column,
  pixel_mask,
  color 
)    gfx_mono_framebuffer_mask_byte(page, column, pixel_mask, color)
#define gfx_mono_put_bitmap (   bitmap,
  x,
 
)    gfx_mono_generic_put_bitmap(bitmap, x, y)
#define gfx_mono_put_framebuffer ( )    ;
#define gfx_mono_put_page (   data,
  page,
  column,
  width 
)    gfx_mono_framebuffer_put_page(data, page, column, width)

void gfx_mono_null_init ( void  )

Initialize NULL driver.

References framebuffer, and gfx_mono_set_framebuffer().