feat(lcd): use Montserrat clock and battery icon assets

This commit is contained in:
chenjintao
2026-10-10 10:12:11 +08:00
parent 22f5ac70a2
commit bf06618848
31 changed files with 970 additions and 187 deletions
@@ -0,0 +1,18 @@
#pragma once
#include <stdint.h>
/* Montserrat 14 原始 4-bit Alpha;仅保留 0..9、冒号、横线。 */
typedef struct {
uint16_t offset;
uint8_t advance, width, height;
int8_t x, y;
} lcd_status_glyph_t;
typedef struct {
const uint8_t *palette; /* RGB565 高字节、低字节、A8。 */
const uint8_t *runs; /* 数量、调色板索引。 */
uint16_t run_bytes;
} lcd_status_icon_t;
extern const uint8_t lcd_status_font_bitmap[];
extern const lcd_status_glyph_t lcd_status_font_glyphs[12];
/* 1、25、50、75、100;后五项为对应的充电图标。 */
extern const lcd_status_icon_t lcd_status_battery_icons[10];