Microchip® Advanced Software Framework

gfx_mono_ug_2832hsweg04.h File Reference

Haven Display UG 2832HSWEG04 display glue code for display controller.

Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.

#include "compiler.h"
#include "ssd1306.h"
#include "gfx_mono.h"
#include "gfx_mono_framebuffer.h"

Macros

#define gfx_mono_draw_pixel(x, y, color)   gfx_mono_ssd1306_draw_pixel(x, y, color)
 
#define gfx_mono_get_byte(page, column)   gfx_mono_ssd1306_get_byte(page, column)
 
#define gfx_mono_get_page(data, page, column, width)   gfx_mono_ssd1306_get_page(data, page, column, width)
 
#define gfx_mono_get_pixel(x, y)   gfx_mono_ssd1306_get_pixel(x, y)
 
#define gfx_mono_init()   gfx_mono_ssd1306_init()
 
#define GFX_MONO_LCD_FRAMEBUFFER_SIZE
 
#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_ssd1306_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_ssd1306_put_byte(page, column, data, false)
 
#define gfx_mono_put_framebuffer()   gfx_mono_ssd1306_put_framebuffer()
 
#define gfx_mono_put_page(data, page, column, width)   gfx_mono_ssd1306_put_page(data, page, column, width)
 
Graphic Drawing Primitives
#define gfx_mono_draw_horizontal_line(x, y, length, color)   gfx_mono_generic_draw_horizontal_line(x, y, length, color)
 Draw a horizontal line, one pixel wide. More...
 
#define gfx_mono_draw_vertical_line(x, y, length, color)   gfx_mono_generic_draw_vertical_line(x, y, length, color)
 Draw a vertical line, one pixel wide. More...
 
#define gfx_mono_draw_line(x1, y1, x2, y2, color)   gfx_mono_generic_draw_line(x1, y1, x2, y2, color)
 Draw a line between two arbitrary points. More...
 
#define gfx_mono_draw_rect(x, y, width, height, color)   gfx_mono_generic_draw_rect(x, y, width, height, color)
 Draw an outline of a rectangle. More...
 
#define gfx_mono_draw_filled_rect(x, y, width, height, color)
 Draw a filled rectangle. More...
 
#define gfx_mono_draw_circle(x, y, radius, color, octant_mask)
 Draw an outline of a circle or arc. More...
 
#define gfx_mono_draw_filled_circle(x, y, radius, color, quadrant_mask)
 Draw a filled circle or sector. More...
 

Functions

void gfx_mono_ssd1306_draw_pixel (gfx_coord_t x, gfx_coord_t y, gfx_mono_color_t color)
 Draw pixel to screen. More...
 
uint8_t gfx_mono_ssd1306_get_byte (gfx_coord_t page, gfx_coord_t column)
 Get a byte from the display controller RAM. More...
 
void gfx_mono_ssd1306_get_page (gfx_mono_color_t *data, gfx_coord_t page, gfx_coord_t page_offset, gfx_coord_t width)
 Read a page from the LCD controller. More...
 
uint8_t gfx_mono_ssd1306_get_pixel (gfx_coord_t x, gfx_coord_t y)
 Get the pixel value at x,y. More...
 
void gfx_mono_ssd1306_init (void)
 Initialize SSD1306 controller and LCD display. More...
 
void gfx_mono_ssd1306_mask_byte (gfx_coord_t page, gfx_coord_t column, gfx_mono_color_t pixel_mask, gfx_mono_color_t color)
 Read/Modify/Write a byte on the display controller. More...
 
void gfx_mono_ssd1306_put_byte (gfx_coord_t page, gfx_coord_t column, uint8_t data, bool force)
 Put a byte to the display controller RAM. More...
 
void gfx_mono_ssd1306_put_framebuffer (void)
 Put framebuffer to LCD controller. More...
 
void gfx_mono_ssd1306_put_page (gfx_mono_color_t *data, gfx_coord_t page, gfx_coord_t page_offset, gfx_coord_t width)
 Put a page from RAM to display controller. More...