Merge branch 'main' into UDP-broadcast

This commit is contained in:
joran2738
2023-11-24 22:38:44 +01:00
4 changed files with 40 additions and 7 deletions

View File

@@ -96,13 +96,16 @@ void lcd_task(void);
* a text wrap will be performed. If the text wrap is between two letters in a word, the '-' character
* will be injected.
*
* @note When bg_color 0 is passed as a parameter, the background for the text will be transparent
*
* @param[in] text C-style text string to display on the LCD screen
* @param[in] x_pos X-position
* @param[in] y_pos Y-position
* @param[in] color Color in which the text will be displayed, see preset colors in defines above
* @param[in] bg_color Text background color
* @param[in] font Font size, see defines above in file
*/
void lcd_display_text(const char* text, uint16_t x_pos, uint16_t y_pos, uint32_t color, sFONT *font);
void lcd_display_text(const char* text, uint16_t x_pos, uint16_t y_pos, uint32_t color, uint32_t bg_color, sFONT *font);
/**
* @brief Draw BMP image on screen
@@ -156,6 +159,14 @@ void lcd_clear_text(void);
*/
void lcd_clear_images(void);
/**
* @brief Set background color of layer 0
* Sets the layer 0 color
*
* @param[in] color Color of layer 0 (images layer)
*/
void lcd_set_bg_color_layer0(uint32_t color);
/**
* @brief LCD stop all GIFs
* Stops all playing GIFs on lcd screen