37 static uint8_t
glcd_map(uint8_t x1, uint8_t x2, uint8_t x);
76 for (ny = 1; ny <= (height-2); ny++) {
78 for (nx = 1; nx <= (width-2); nx += 1) {
84 val = val * (height-3) / 255;
87 if (val > (height-3)) {
102 if (line_width == 0) {
108 for (n=0; n<line_width; n++) {
117 static uint8_t
glcd_map(uint8_t x1, uint8_t x2, uint8_t x)
119 return x1+(x2-x1)*x/255;
void glcd_bar_graph_horizontal(uint8_t x, uint8_t y, uint8_t width, uint8_t height, uint8_t val)
Draw horizontal bar graph with 1 px wide border.
void glcd_write(void)
Update the display within the specified bounding box.
void glcd_draw_line(uint8_t x0, uint8_t y0, uint8_t x1, uint8_t y1, uint8_t color)
Draw line.
void glcd_bar_graph_vertical_no_border(uint8_t x, uint8_t y, uint8_t width, uint8_t height, uint8_t val)
Draw vertical bar graph with no border.
uint8_t glcd_get_pixel(uint8_t x, uint8_t y)
Get state of pixel from specified location.
void glcd_bar_graph_vertical(uint8_t x, uint8_t y, uint8_t width, uint8_t height, uint8_t val)
Draw vertical bar graph with 1px wide border.
void glcd_scrolling_bar_graph(uint8_t x, uint8_t y, uint8_t width, uint8_t height, uint8_t val)
void glcd_set_pixel(uint8_t x, uint8_t y, uint8_t color)
Set pixel to specified colour.
void glcd_bar_graph_horizontal_no_border(uint8_t x, uint8_t y, uint8_t width, uint8_t height, uint8_t val)
Draw horizontal bar graph with no border.
static uint8_t glcd_map(uint8_t x1, uint8_t x2, uint8_t x)
GLCD Library main header file.
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_scrolling_bar_graph_timing(uint8_t x, uint8_t y, uint8_t width, uint8_t height, uint8_t val, uint8_t line_width, uint16_t delay)