OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 53|回复: 0

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

[复制链接]

1

主题

1

帖子

0

精华

新手入门

积分
6
金钱
6
注册时间
2025-2-16
在线时间
1 小时
发表于 2025-4-12 19:49:00 | 显示全部楼层 |阅读模式
1金钱
正点原子阿波罗H743使用DMA2D后普通刷屏出现问题:

代码:
import utime as timefrom machine import LCD     # Import the LCD class from machinelcd = LCD()                             # Create a LCD objectlcd.light(False)                        # Close the backlighttime.sleep(1)lcd.light(True)                         # Open the backlighttime.sleep(1)lcd.set_color(lcd.WHITE, lcd.BLACK)     # Set background color and foreground colorlcd.fill(lcd.BLACK)                     # Fill the entire LCD with blacktime.sleep(1)lcd.fill(lcd.RED)                       # Fill the entire LCD with redtime.sleep(1)lcd.fill(lcd.GRAY)                      # Fill the entire LCD with graytime.sleep(1)lcd.fill(lcd.WHITE)                     # Fill the entire LCD with whitetime.sleep(1)lcd.pixel(50, 50, lcd.BLUE)             # fills the pixels in the (50,50) position with bluetime.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)

正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-4-21 10:19

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表