LCD Inversion refactoring

This commit is contained in:
Dmitry422
2025-04-13 23:43:43 +07:00
parent 535afc41f3
commit 8a0fb5df36
8 changed files with 33 additions and 60 deletions
+1 -7
View File
@@ -37,6 +37,7 @@
#include <string.h>
/*============================================*/
void u8g2_ClearBuffer(u8g2_t* u8g2) {
size_t cnt;
cnt = u8g2_GetU8x8(u8g2)->display_info->tile_width;
@@ -45,13 +46,6 @@ void u8g2_ClearBuffer(u8g2_t* u8g2) {
memset(u8g2->tile_buf_ptr, 0, cnt);
}
void u8g2_FillBuffer(u8g2_t* u8g2) {
size_t cnt;
cnt = u8g2_GetU8x8(u8g2)->display_info->tile_width;
cnt *= u8g2->tile_buf_height;
cnt *= 8;
memset(u8g2->tile_buf_ptr, 255, cnt);
}
/*============================================*/
static void u8g2_send_tile_row(u8g2_t* u8g2, uint8_t src_tile_row, uint8_t dest_tile_row) {