Switch all position params in LCD_API to uint32_t

This commit is contained in:
xoreo
2023-12-03 14:51:47 +01:00
parent 0cc34bfd6b
commit 0b9c1984ac
2 changed files with 2 additions and 2 deletions

View File

@@ -105,7 +105,7 @@ void lcd_task(void);
* @param[in] bg_color Text background color * @param[in] bg_color Text background color
* @param[in] font Font size, see defines above in file * @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, uint32_t bg_color, sFONT *font); void lcd_display_text(const char* text, uint32_t x_pos, uint32_t y_pos, uint32_t color, uint32_t bg_color, sFONT *font);
/** /**
* @brief Draw BMP image on screen * @brief Draw BMP image on screen

View File

@@ -84,7 +84,7 @@ void lcd_task(void) {
} }
} }
void lcd_display_text(const char* text, uint16_t x_pos, uint16_t y_pos, uint32_t color, uint32_t bg_color, sFONT* font) { void lcd_display_text(const char* text, uint32_t x_pos, uint32_t y_pos, uint32_t color, uint32_t bg_color, sFONT* font) {
BSP_LCD_SelectLayer(1); BSP_LCD_SelectLayer(1);
LOG_INFO(TAG, "Display text: %s @x=%d,y=%d", text, x_pos, y_pos); LOG_INFO(TAG, "Display text: %s @x=%d,y=%d", text, x_pos, y_pos);