你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

正点原子阿波罗H743使用DMA2D后普通刷出现问题

[复制链接]
vincent2012 提问时间:2025-4-12 19:44 / 未解决

正点原子阿波罗H743使用DMA2D后普通刷屏出现问题: 0adb6b3a7f02818127babef03a83c374.png

代码:

import utime as time
from machine import LCD     # Import the LCD class from machine

lcd = LCD()                             # Create a LCD object
lcd.light(False)                        # Close the backlight
time.sleep(1)
lcd.light(True)                         # Open the backlight
time.sleep(1)
lcd.set_color(lcd.WHITE, lcd.BLACK)     # Set background color and foreground color
lcd.fill(lcd.BLACK)                     # Fill the entire LCD with black
time.sleep(1)
lcd.fill(lcd.RED)                       # Fill the entire LCD with red
time.sleep(1)
lcd.fill(lcd.GRAY)                      # Fill the entire LCD with gray
time.sleep(1)
lcd.fill(lcd.WHITE)                     # Fill the entire LCD with white
time.sleep(1)
lcd.pixel(50, 50, lcd.BLUE)             # fills the pixels in the (50,50) position with blue
time.sleep(1)
lcd.text("hello RT-Thread", 0, 0, 16)   # prints the string at 16 font size at position (0, 0)
time.sleep(1)
lcd.text("hello RT-Thread", 0, 16, 24)  # prints the string at 24 font size at position (0, 16)
time.sleep(1)
lcd.text("hello RT-Thread", 0, 48, 32)  # prints the string at 32 font size at position (0, 48)
time.sleep(1)
lcd.line(0, 50, 1023, 50)                # Draw a line starting at (0,50) and ending at (239,50)
time.sleep(1)
lcd.line(0, 50, 1023, 50)                # Draw a line starting at (0,50) and ending at (239,50)
time.sleep(1)
lcd.rectangle(100, 100, 1000, 500)       # Draw a rectangle with the top left corner (100,100) and the bottom right corner (200,200)
time.sleep(1)
lcd.circle(150, 150, 100)                # Draw a circle with a radius of 80 at the center (150,150)

收藏 评论2 发布时间:2025-4-12 19:44

举报

2个回答
STMCU-管管 回答时间:2025-4-17 16:44:30
  • 临时禁用DMA2D加速,看看问题是否消失
vincent2012 回答时间:7 天前
可以用dma2d,时序问题现在变成了这样https://oss-club.rt-thread.org/uploads/20241231/625cb6c06bcbedd9c96497720c480b71.jpg

所属标签

相似问题

官网相关资源

关于
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
意法半导体官网
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
官方最新发布
STM32N6 AI生态系统
STM32MCU,MPU高性能GUI
ST ACEPACK电源模块
意法半导体生物传感器
STM32Cube扩展软件包
关注我们
st-img 微信公众号
st-img 手机版