当前位置:网站首页>移植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左右
超级玛丽
程序下载
边栏推荐
- JS quick start (II)
- Codeless June event 2022 codeless Explorer conference will be held soon; AI enhanced codeless tool launched
- Configuration file converted from Excel to Lua
- 注释、接续、转义等符号
- First acquaintance with CDN
- nacos-高可用seata之TC搭建(02)
- [untitled]
- 【torch】|torch.nn.utils.clip_grad_norm_
- Three. JS learning - light and shadow (understanding)
- Tetris
猜你喜欢

flutter 实现一个有加载动画的按钮(loadingButton)

Three methods of Oracle two table Association update

Can the feelings of Xi'an version of "Coca Cola" and Bingfeng beverage rush for IPO continue?

Review of double pointer problems

JS array list actual use summary

Notes, continuation, escape and other symbols

Graduation design game mall

In 2022, we must enter the big factory as soon as possible

First acquaintance with CDN

Modbus协议通信异常
随机推荐
After the project is released, index Html is cached
Vulhub vulnerability recurrence 72_ uWSGI
[effective Objective-C] - memory management
Simple understanding of interpreters and compilers
Notes, continuation, escape and other symbols
01. Project introduction of blog development project
Jvxetable implant j-popup with slot
Codeforces Round #804 (Div. 2) Editorial(A-B)
Detailed summary of SQL injection
02. Develop data storage of blog project
Zoom and pan image in Photoshop 2022
Note the various data set acquisition methods of jvxetable
Oracle deletes duplicate data, leaving only one
How to download GB files from Google cloud hard disk
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
27io stream, byte output stream, OutputStream writes data to file
HAC cluster modifying administrator user password
flutter 实现一个有加载动画的按钮(loadingButton)
Graduation design game mall
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