Adapt to styleguide (Sani7 comments)

This commit is contained in:
xoreo
2023-11-14 15:39:22 +01:00
parent 1562d4d3b0
commit a899fdaee8
3 changed files with 8 additions and 8 deletions

View File

@@ -116,7 +116,7 @@ Note that when an image exceeds the X or Y size of the LCD display, the image wi
#### Drawing a BMP from the filesystem to the LCD #### Drawing a BMP from the filesystem to the LCD
```c ```c
void lcd_draw_img_from_fs_with_name(const char* name, uint32_t x_pos, uint32_t y_pos); void lcd_draw_img_from_fs(const char* name, uint32_t x_pos, uint32_t y_pos);
``` ```
```c ```c
@@ -126,7 +126,7 @@ void main(void) {
... ...
lcd_init(true); lcd_init(true);
... ...
lcd_draw_img_from_fs_with_name("st.bmp", 0, 0); lcd_draw_img_from_fs("st.bmp", 0, 0);
} }
``` ```

View File

@@ -116,7 +116,7 @@ void lcd_draw_bmp_img(uint8_t* bmp_buff, uint32_t x_pos, uint32_t y_pos);
* @param[in] x_pos X-position * @param[in] x_pos X-position
* @param[in] y_pos Y-position * @param[in] y_pos Y-position
*/ */
void lcd_draw_img_from_fs_with_name(const char* name, uint32_t x_pos, uint32_t y_pos); void lcd_draw_img_from_fs(const char* name, uint32_t x_pos, uint32_t y_pos);
/** /**
* @brief Clear LCD screen * @brief Clear LCD screen

View File

@@ -100,13 +100,13 @@ void lcd_draw_bmp_img(uint8_t* bmp_buff, uint32_t x_pos, uint32_t y_pos){
BSP_LCD_DrawBitmap(x_pos, y_pos, bmp_buff); BSP_LCD_DrawBitmap(x_pos, y_pos, bmp_buff);
} }
void lcd_draw_img_from_fs_with_name(const char* name, uint32_t x_pos, uint32_t y_pos){ void lcd_draw_img_from_fs(const char* name, uint32_t x_pos, uint32_t y_pos) {
llfs_file_t* file = llfs_file_open(name); llfs_file_t* file = llfs_file_open(name);
if (file != NULL) { if (file != NULL) {
BSP_LCD_DrawBitmap(x_pos, y_pos, file->data); BSP_LCD_DrawBitmap(x_pos, y_pos, file->data);
} else { return;
LOG_WARN(TAG, "File \"%s\" not found", file->name);
} }
LOG_WARN(TAG, "File \"%s\" not found", file->name);
} }
void lcd_clear(uint32_t color) { void lcd_clear(uint32_t color) {