GLCD Library
A C Library for Embedded Applications
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups Pages
Graphing

Functions for graphing, e.g drawing bar graphs etc. More...

Functions

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. More...
 
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. More...
 
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. More...
 
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. More...
 
void glcd_scrolling_bar_graph (uint8_t x, uint8_t y, uint8_t width, uint8_t height, uint8_t val)
 

Detailed Description

Functions for graphing, e.g drawing bar graphs etc.

Function Documentation

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.

The bar graph draws from left to right as val increases.

Parameters
xx location for top-left of border
yy location for top-left of border
widthwidth of the border
heightheight of the border (must be over 2)
valvalue to display in graph (0-255 8 bit value).

Definition at line 39 of file graphs.c.

Referenced by glcd_test_counter_and_graph().

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.

The bar graph draws from left to right as val increases.

Parameters
xx location for top-left of bar
yy location for top-left of bar
widthwidth of the bar at full val
heightheight of the bar
valvalue to display in graph (0-255 8 bit value).

Definition at line 48 of file graphs.c.

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.

The bar graph draws from bottom to top as val increases.

Parameters
xx location for top-left of border
yy location for top-left of border
widthwidth of the border
heightheight of the border
valvalue to display in graph (0-255 8 bit value).

Definition at line 56 of file graphs.c.

Referenced by glcd_test_counter_and_graph().

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.

The bar graph draws from bottom to top as val increases.

Parameters
xx location for top-left of bar
yy location for top-left of bar
widthwidth of the bar
heightheight of the bar
valvalue to display in graph (0-255 8 bit value).

Definition at line 62 of file graphs.c.

void glcd_scrolling_bar_graph ( uint8_t  x,
uint8_t  y,
uint8_t  width,
uint8_t  height,
uint8_t  val 
)
Todo:
write doc

Definition at line 67 of file graphs.c.

Referenced by glcd_scrolling_bar_graph_timing(), and glcd_test_scrolling_graph().