GLCD Library
A C Library for Embedded Applications
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups Pages
graphics.c File Reference

Functions relating to graphics. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "glcd.h"

Go to the source code of this file.

Functions

void glcd_draw_bitmap (const unsigned char *data)
 Draw bitmap to screen buffer. More...
 
void glcd_draw_circle (uint8_t x0, uint8_t y0, uint8_t r, uint8_t color)
 Draw circle but do not fill. More...
 
void glcd_draw_line (uint8_t x0, uint8_t y0, uint8_t x1, uint8_t y1, uint8_t color)
 Draw line. More...
 
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. More...
 
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. More...
 
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. More...
 
void glcd_fill_circle (uint8_t x0, uint8_t y0, uint8_t r, uint8_t color)
 Draw circle and fill. More...
 
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. More...
 
uint8_t glcd_get_pixel (uint8_t x, uint8_t y)
 Get state of pixel from specified location. More...
 
void glcd_invert_area (uint8_t x, uint8_t y, uint8_t w, uint8_t h)
 Invert pixels in a retangular area. More...
 
void glcd_invert_pixel (uint8_t x, uint8_t y)
 Invert state of pixel of specified location. More...
 
void glcd_set_pixel (uint8_t x, uint8_t y, uint8_t color)
 Set pixel to specified colour. More...
 

Detailed Description

Functions relating to graphics.

e.g drawing lines, rectangles, circles etc.

Author
Andy Gock

Some functions based on Limor Fried's PCD8544 Arduino library.

Definition in file graphics.c.