Show first bars of data

This commit is contained in:
Sem van der Hoeven
2025-04-03 00:22:07 +02:00
parent 2f325e3254
commit 48933e2bab
6 changed files with 218 additions and 92 deletions

View File

@@ -17,6 +17,22 @@
*/
void bar_draw_horizontal(int start_x, int start_y, int width, int height, int value, int max_value, uint color, char fill_outline, UTFT *display);
/**
* @brief Draws a horizontal bar on the display
* @param start_x The start x position (top left)
* @param start_y The start y position (top left)
* @param width The width of the bar
* @param height The height of the bar
* @param value The value to be displayed
* @param max_value The maximum value of the bar
* @param r The red color value of the bar
* @param g The green color value of the bar
* @param b The blue color value of the bar
* @param fill_outline Whether to fill the outline of the bar
* @param display The display object
*/
void bar_draw_horizontal(int start_x, int start_y, int width, int height, int value, int max_value, byte r, byte g, byte b, char fill_outline, UTFT *display);
/**
* @brief Draws a vertical bar on the display
* @param start_x The start x position (top left)
@@ -31,6 +47,22 @@ void bar_draw_horizontal(int start_x, int start_y, int width, int height, int va
*/
void bar_draw_vertical(int start_x, int start_y, int width, int height, int value, int max_value, uint color, char fill_outline, UTFT *display);
/**
* @brief Draws a vertical bar on the display
* @param start_x The start x position (top left)
* @param start_y The start y position (top left)
* @param width The width of the bar
* @param height The height of the bar
* @param value The value to be displayed
* @param max_value The maximum value of the bar
* @param r The red color value of the bar
* @param g The green color value of the bar
* @param b The blue color value of the bar
* @param fill_outline Whether to fill the outline of the bar
* @param display The display object
*/
void bar_draw_vertical(int start_x, int start_y, int width, int height, int value, int max_value, byte r, byte g, byte b, char fill_outline, UTFT *display);
/**
* @brief Clears a part of a horizontal bar
* @param start_x The start x position (top left)