85 void glcd_draw_line(uint8_t x0, uint8_t y0, uint8_t x1, uint8_t y1, uint8_t color) {
86 uint8_t steep = abs(y1 - y0) > abs(x1 - x0);
114 for (; x0<=x1; x0++) {
131 for (i=x; i<x+w; i++) {
133 for (j=y; j<y+h; j++) {
143 for (i=x; i<x+w; i++) {
147 for (i=y; i<y+h; i++) {
166 for (i=x; i<x+w; i++) {
168 for (t=0; t<(ty); t++) {
173 for (i=y; i<y+h; i++) {
175 for (t=0; t<(tx); t++) {
195 int8_t ddF_y = -2 * r;
234 int8_t ddF_y = -2 * r;
242 for (i=y0-r; i<=y0+r; i++) {
256 for (i=y0-y; i<=y0+y; i++) {
260 for (i=y0-x; i<=y0+x; i++) {
270 for (xx = x; xx < (x+w); xx++) {
272 for (yy = y; yy < (y+h); yy++) {
285 uint8_t *original_buffer;
302 #if defined(GLCD_DEVICE_AVR8)
#define GLCD_LCD_WIDTH
User specified GLCD width in pixels Set to 0 for automatic assignment based on controller.
void glcd_draw_rect_shadow(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t color)
Draw rectangle but do not fill.
void glcd_invert_pixel(uint8_t x, uint8_t y)
Invert state of pixel of specified location.
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.
void glcd_draw_rect_thick(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t tx, uint8_t ty, uint8_t color)
Draw rectangle but do not fill.
void glcd_select_screen(uint8_t *buffer, glcd_BoundingBox_t *bbox)
Select screen buffer and bounding box structure.
void glcd_draw_line(uint8_t x0, uint8_t y0, uint8_t x1, uint8_t y1, uint8_t color)
Draw line.
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.
uint8_t glcd_get_pixel(uint8_t x, uint8_t y)
Get state of pixel from specified location.
void glcd_invert_area(uint8_t x, uint8_t y, uint8_t w, uint8_t h)
Invert pixels in a retangular area.
void glcd_set_pixel(uint8_t x, uint8_t y, uint8_t color)
Set pixel to specified colour.
void glcd_draw_circle(uint8_t x0, uint8_t y0, uint8_t r, uint8_t color)
Draw circle but do not fill.
uint8_t glcd_buffer[GLCD_LCD_WIDTH *GLCD_LCD_HEIGHT/8]
Screen buffer.
void glcd_fill_circle(uint8_t x0, uint8_t y0, uint8_t r, uint8_t color)
Draw circle and fill.
GLCD Library main header file.
void glcd_draw_bitmap(const unsigned char *data)
Draw bitmap to screen buffer.
void glcd_draw_rect(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t color)
Draw rectangle but do not fill.
void glcd_fill_rect(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t color)
Draw rectangle and fill with colour.
void glcd_update_bbox(uint8_t xmin, uint8_t ymin, uint8_t xmax, uint8_t ymax)
Update bounding box.