Microchip® Advanced Software Framework

gfx_mono_ug_2832hsweg04.c File Reference

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

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

Functions

void gfx_mono_ssd1306_draw_pixel (gfx_coord_t x, gfx_coord_t y, gfx_coord_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 column, 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 column, gfx_coord_t width)
 Put a page from RAM to display controller. More...
 

void gfx_mono_ssd1306_draw_pixel ( gfx_coord_t  x,
gfx_coord_t  y,
gfx_coord_t  color 
)

Draw pixel to screen.

Parameters
xX coordinate of the pixel
yY coordinate of the pixel
colorPixel operation

The following will set the pixel at x=10,y=10:

The following example will clear the pixel at x=10,y=10:

And the following will toggle the pixel at x=10,y=10:

References gfx_mono_get_byte, GFX_MONO_LCD_HEIGHT, GFX_MONO_LCD_PIXELS_PER_BYTE, GFX_MONO_LCD_WIDTH, gfx_mono_put_byte, GFX_PIXEL_CLR, GFX_PIXEL_SET, and GFX_PIXEL_XOR.