|
GLCD Library
A C Library for Embedded Applications
|
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) |
Functions for graphing, e.g drawing bar graphs etc.
| 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.
| x | x location for top-left of border |
| y | y location for top-left of border |
| width | width of the border |
| height | height of the border (must be over 2) |
| val | value 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.
| x | x location for top-left of bar |
| y | y location for top-left of bar |
| width | width of the bar at full val |
| height | height of the bar |
| val | value to display in graph (0-255 8 bit value). |
| 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.
| x | x location for top-left of border |
| y | y location for top-left of border |
| width | width of the border |
| height | height of the border |
| val | value 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.
| x | x location for top-left of bar |
| y | y location for top-left of bar |
| width | width of the bar |
| height | height of the bar |
| val | value to display in graph (0-255 8 bit value). |
| void glcd_scrolling_bar_graph | ( | uint8_t | x, |
| uint8_t | y, | ||
| uint8_t | width, | ||
| uint8_t | height, | ||
| uint8_t | val | ||
| ) |
Definition at line 67 of file graphs.c.
Referenced by glcd_scrolling_bar_graph_timing(), and glcd_test_scrolling_graph().