Atmel Software Framework

gfx_mono_c12832_a1z.c File Reference

Haven Display C12832 A1Z display glue code for display controller.

Copyright (c) 2011-2015 Atmel Corporation. All rights reserved.

Functions

void gfx_mono_st7565r_draw_pixel (gfx_coord_t x, gfx_coord_t y, gfx_coord_t color)
 Draw pixel to screen. More...
 
uint8_t gfx_mono_st7565r_get_byte (gfx_coord_t page, gfx_coord_t column)
 Get a byte from the display controller RAM. More...
 
void gfx_mono_st7565r_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_st7565r_get_pixel (gfx_coord_t x, gfx_coord_t y)
 Get the pixel value at x,y. More...
 
void gfx_mono_st7565r_init (void)
 Initialize ST7565R controller and LCD display. More...
 
void gfx_mono_st7565r_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_st7565r_put_byte (gfx_coord_t page, gfx_coord_t column, uint8_t data)
 Put a byte to the display controller RAM. More...
 
void gfx_mono_st7565r_put_framebuffer (void)
 Put framebuffer to LCD controller. More...
 
void gfx_mono_st7565r_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_st7565r_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.