支持 XIAO ESP32S3 与 7.5 寸 GDEY075Z08 三色墨水屏#96
Open
YCD12 wants to merge 7 commits into
Open
Conversation
Adjust UC8179 timing for the GDEY075Z08 tricolor panel. Keep XIAO ESP32S3-specific battery ADC handling when EPD_DC shares GPIO10. Expose LED feedback with external linkage and centralize panel color capability config. Signed-off-by: Dongyuchen6 <1227562610@qq.com>
2、7.5寸 uc8179 去掉先刷白再刷新的操作 Signed-off-by: DYC <1227562610@qq.com>
新增: - src/epd_driver_hink_ssd1683.cpp:4.2" HINK 黑白红三色屏独立驱动 参考 GxEPD2/GDEY042Z98(SSD1683)初始化时序,不走 GxEPD2 库 - platformio.ini:env 重命名为 epd_42_hink_ssd1683_xiao_esp32s3, 宏由 EPD_PANEL_42_HINK_SSD16XX 改为 EPD_PANEL_42_HINK_SSD1683 - config.h / epd_driver.cpp:同步更新宏守卫 修复 (SSD1683 驱动三个坑): 1. 下半部分全黑/全白 ← 根本原因 decodeRaw2bppToTriColorPlanes 在解码前调用了 memset(color_plane, 0x00, IMG_BUF_LEN)。 color_plane 复用 colorBuf 上半段(colorBuf + IMG_BUF_LEN), raw2bpp 源数据正好存放在整个 colorBuf(包含上半段)。 memset 直接把后半段 2bpp 源数据清零,导致 out >= IMG_BUF_LEN/2 的所有像素读到的都是 0x00(= 黑色码),下半屏整体黑色。 修复:去掉 memset(color_plane),循环本身覆盖全部输出字节,无需预清零。 解码约定改为与 uc8179/gdey0583 一致的 active-LOW(0=黑/彩,1=白/无彩)。 2. 黑白颜色反转 SSD1683 的 0x24 BW RAM 为 active-LOW(0=黑,1=白), 而原始解码输出为 active-HIGH(1=黑)。修复:直接写入 active-LOW 解码结果;0x26 彩色 RAM 为 active-HIGH(1=红),需取反写入。 3. 屏幕下半部分不更新(RAM 地址未复位) 每个数据面写入前仅重置地址指针(0x4E/0x4F),未重新声明窗口。 SSD1683 在写完一帧后 Y 地址计数器状态不确定,需在每次写入前 完整重设窗口(0x11/0x44/0x45)和指针,与 GDEY042Z98 参考驱动一致。 4. 刷新序列错误(0xC7 → 0xF7) 原 0x22 刷新命令使用 0xC7(不加载 OTP LUT),导致波形未初始化, 画面仅部分刷新。改为 0xF7(加载 LUT + 温度 + 显示),每次刷新 都从 OTP 完整加载波形,与 SSD1683 datasheet 标准全刷流程一致。 修复 (GDEY0583Z21 5.83寸 BWY): - 颜色面极性反转:0x13 彩色面需取反写入(1=黄),黑色面直接写入 - 刷新序列去掉多余的 0x91/0x92 partial in/out 包裹(参考 GDEQ0583Z31) Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: DYC <1227562610@qq.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更说明
本次修改主要完成了 XIAO ESP32S3 搭配 7.5 寸 GDEY075Z08 三色墨水屏的适配,并修正了相关编译与显示时序问题。
主要改动
EPD_COLOR_CAPABILITYEPD_BPP=2,并将三色面板能力单独表示为EPD_COLOR_CAPABILITY=3说明
EPD_BPP表示图像传输编码位深,不等同于面板实际颜色数2bppEPD_BPP=2,同时通过EPD_COLOR_CAPABILITY=3向后端声明实际颜色能力影响范围