Skip to content

v2.0.0-release_for_c

Choose a tag to compare

@kxgx kxgx released this 18 Jul 09:36
· 6 commits to main since this release

v2.0.0 - C 语言重写版

重大变更

  • C 语言重写: 从 Python 完全迁移到 C 语言,性能大幅提升
  • 零依赖字体渲染: 使用 stb_truetype 替代 FreeType,无需安装任何字体库
  • wttr.in 天气 API: 替换已失效的 weather.com.cn API,支持中文天气描述

技术亮点

  • stb_truetype 单头文件字体渲染 (TTC + TTF)
  • 纯 C JSON 解析 (无外部依赖)
  • 增量刷新减少屏幕闪烁
  • 农历显示 (通过 Python borax 库)

安装方式

git clone -b c-bindings https://github.com/kxgx/2.13-Ink-screen-clock
cd 2.13-Ink-screen-clock/bin
sudo bash install.sh