87 if (xmin < glcd_bbox_selected->x_min) {
88 glcd_bbox_selected->
x_min = xmin;
90 if (xmax > glcd_bbox_selected->
x_max) {
91 glcd_bbox_selected->
x_max = xmax;
93 if (ymin < glcd_bbox_selected->y_min) {
94 glcd_bbox_selected->
y_min = ymin;
96 if (ymax > glcd_bbox_selected->
y_max) {
97 glcd_bbox_selected->
y_max = ymax;
105 glcd_bbox_selected->
x_max = 0;
107 glcd_bbox_selected->
y_max = 0;
116 glcd_bbox_selected->
x_min = 0;
118 glcd_bbox_selected->
y_min = 0;
136 glcd_bbox_selected = bbox;
157 for (y=0; y<number_of_rows; y++) {
158 if (y < (number_of_rows - 1)) {
#define GLCD_LCD_WIDTH
User specified GLCD width in pixels Set to 0 for automatic assignment based on controller.
glcd_BoundingBox_t * glcd_bbox_selected
Pointer to bounding box currently in use.
void glcd_write(void)
Update the display within the specified bounding box.
Bounding box for pixels that need to be updated.
void glcd_select_screen(uint8_t *buffer, glcd_BoundingBox_t *bbox)
Select screen buffer and bounding box structure.
void glcd_scroll_line(void)
Scroll screen buffer up by 8 pixels.
glcd_BoundingBox_t glcd_bbox
Keeps track of bounding box of area on LCD which need to be updated next reresh cycle.
void glcd_bbox_refresh()
Marks the entire display for re-writing.
#define GLCD_LCD_HEIGHT
User specified GLCD height in pixels Set to 0 for automatic assignment based on controller.
uint8_t * glcd_buffer_selected
Pointer to screen buffer currently in use.
void glcd_bbox_reset()
Same as glcd_reset_bbox()
void glcd_clear_buffer(void)
Clear the display buffer only.
void glcd_clear(void)
Clear the display.
uint8_t glcd_buffer[GLCD_LCD_WIDTH *GLCD_LCD_HEIGHT/8]
Screen buffer.
GLCD Library main header file.
void glcd_reset_bbox()
Reset the bounding box.
void glcd_scroll(int8_t x, int8_t y)
Scroll entire screne buffer by x and y pixels.
void glcd_update_bbox(uint8_t xmin, uint8_t ymin, uint8_t xmax, uint8_t ymax)
Update bounding box.