Skip to content

[验证成功] 增加屏幕旋转功能,适配老王144x72_JDI_Memory LCD屏幕,增加屏幕旋转测试例子 #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

z7z9z8
Copy link

@z7z9z8 z7z9z8 commented Oct 6, 2024

[功能更新] ### 增加屏幕旋转功能

  • 添加了屏幕旋转功能,适配 JDI 144x72 Memory LCD 显示屏。
  • 实现了 set_direction() 方法,用于根据传入参数设置屏幕的旋转方向(0°, 90°, 180°, 270°)。
  • 增加了旋转功能的测试用例,确保不同方向的显示正确。

测试:

  1. 已在硬件上验证各个旋转角度的显示效果,均符合预期。
  2. 提供了详细的测试用例,方便后续维护和验证。

测试结果:

Video_20241007_031026_402

感谢:

非常感谢你们为这个项目所做的出色工作!这个项目让我在开发中受益匪浅,希望这次提交的屏幕旋转功能能够进一步增强项目的功能。如果有任何改进建议或反馈,欢迎随时提出!

@Gbertaz
Copy link
Owner

Gbertaz commented Oct 8, 2024

@z7z9z8 Hi, thank you for sending the PR. I will merge soon!

@@ -65,9 +76,117 @@ void JDI_MIP_Display::begin()
#endif
}

#ifdef USE_144_72_LCD
void JDI_MIP_Display::refresh() {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function must be generic and not tied to a specific display resolution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants