当前位置:网站首页>移植InfoNES到STM32
移植InfoNES到STM32
2022-07-06 05:31:00 【然而然自】
开发环境
MUC:STM32F407ZGT6
板子:正点原子STM32F407最小核心板
LCD:正点原子4.3 TFTLCD
注:基于正点原子LCD例程修改。若板子和LCD与上面一致,可直接烧录该程序。
需要移植的文件
整个NES文件夹

添加NES路径
移植注意事项
1.若颜色显示不正常,在此处修改RGB顺序
2.修改自己的LCD刷新函数
3.添加按键扫描和按键功能
按键扫描:我使用的是触摸屏,每10ms定时器置为扫描标志位,再根据标志位扫描触摸屏
如果没有触摸功能,可在此处修改按键扫描
按键功能:
不同游戏操作按键似乎有点不同,根据实际情况更改
玩超级玛丽时:
玩沙罗曼蛇时:
4.在main函数添加方框内容
5.有两个游戏可以选择
选择一个需要注释掉另外一个
效果展示
不加触摸扫描,只使用按键,帧数可达47左右
使用触摸后,触摸扫描时间较长,导致帧数有所下降,在32左右
超级玛丽
程序下载
边栏推荐
- Questions d'examen écrit classiques du pointeur
- Yyds dry inventory SSH Remote Connection introduction
- 05. Security of blog project
- 注释、接续、转义等符号
- 指針經典筆試題
- Driver development - hellowdm driver
- Principle and performance analysis of lepton lossless compression
- Vulhub vulnerability recurrence 71_ Unomi
- [leetcode] 18. Sum of four numbers
- [leetcode daily question] number of enclaves
猜你喜欢

Text classification still stays at Bert? The dual contrast learning framework is too strong

F12 solve the problem that web pages cannot be copied

Golang -- TCP implements concurrency (server and client)

nacos-高可用seata之TC搭建(02)

Fiddler installed the certificate, or prompted that the certificate is invalid
![[effective Objective-C] - memory management](/img/1e/611aa998486bbac76ac103c3091794.jpg)
[effective Objective-C] - memory management

js Array 列表 实战使用总结

趋势前沿 | 达摩院语音 AI 最新技术大全

The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower

How to download GB files from Google cloud hard disk
随机推荐
[machine learning notes] univariate linear regression principle, formula and code implementation
毕业设计游戏商城
[leetcode daily question] number of enclaves
Codeless June event 2022 codeless Explorer conference will be held soon; AI enhanced codeless tool launched
【torch】|torch. nn. utils. clip_ grad_ norm_
趋势前沿 | 达摩院语音 AI 最新技术大全
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
自建DNS服务器,客户端打开网页慢,解决办法
27io stream, byte output stream, OutputStream writes data to file
Knowledge points of circular structure
UCF (summer team competition II)
Hyperledger Fabric2. Some basic concepts of X (1)
Codeforces Round #804 (Div. 2) Editorial(A-B)
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
剑指 Offer II 039. 直方图最大矩形面积
[leetcode] 18. Sum of four numbers
Mongodb basic knowledge summary
Cve-2019-11043 (PHP Remote Code Execution Vulnerability)
February 12 relativelayout
UCF (2022 summer team competition I)