Code Monkey home page Code Monkey logo

epdiy-ec080sc2's Introduction

EPDIY-EC080SC2

概述

EC080SC2是来自元太科技的的一款800*600分辨率的E-ink墨水屏幕,采用滤光片实现彩色效果,实际驱动方式与16位灰阶墨水屏无异。本仓库尝试使用EPDIY-V7硬件结合EPDIY组件,开发彩色效果。

TO DO

  • 实现彩色图片显示
  • 重构EPDIY,使之支持彩色墨水屏

效果展示

effect

使用方法

  1. epdiyv2.0复制components文件夹。可参考espidf
  2. 执行tools/rgb2arr_color.py,将无透明通道的图片传入,生成.h格式图像文件
  3. main.c当中使用epd_draw_color_image将图像载入缓冲区,随后显示即可(类似 epd_draw_rotated_image)

原理阐释

本屏幕的每个像素由横向排列的三个子像素构成,因而在短边(彩色分辨率600p侧)实际分辨率达到1800p,仅需要将800p图像的RGB三个通道依次显示在1800p的屏幕上即可

显微图像
显微图像(红圈为一个像素)

TBD

时间仓促,仅依赖原版epdiy2.0实现了图像转换脚本以及一些适配EC080SC2彩色图像显示的临时函数(均在main.c),亟待整合进入脚本或更新库文件~

TIPs

  1. tools/rgb2arr_color.py 脚本中注释了一些还没封装为选项的操作,有cmy格式显示,色彩抖动算法等~
  2. tools/rgb2arr_color.py 执行报错请检查图片是否有透明通道,如有,请移除,或修改32-33行为
    # 获取当前像素的RGB值
             r1, g1, b1, _ = pixels[y, 2*x]
             r2, g2, b2, _ = pixels[y, 2*x+1]
  3. 本项目使用 esp-idf v5.0 框架 理论上arduino也能用,没试过~

Licenses

本项目依托于epdiy项目
GNU Lesser GPL version 3分发

epdiy-ec080sc2's People

Contributors

bxhsiman avatar

Stargazers

 avatar hequan avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.