当前位置:网站首页>移植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左右
超级玛丽
程序下载
边栏推荐
- 【华为机试真题详解】统计射击比赛成绩
- Cuda11.1 online installation
- First acquaintance with CDN
- Vulhub vulnerability recurrence 68_ ThinkPHP
- [QNX hypervisor 2.2 user manual]6.3.3 using shared memory (shmem) virtual devices
- Pix2pix: image to image conversion using conditional countermeasure networks
- C AES encrypts strings
- LeetCode_ String inversion_ Simple_ 557. Reverse word III in string
- Three. JS learning - light and shadow (understanding)
- C Advanced - data storage (Part 1)
猜你喜欢

03. Login of development blog project
![[mask requirements of OSPF and Isis in multi access network]](/img/7d/1ba80bb906caa9be4bef165ac26d2c.png)
[mask requirements of OSPF and Isis in multi access network]

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

浅谈镜头滤镜的类型及作用

Vite configures the development environment and production environment

Questions d'examen écrit classiques du pointeur

Ad20 is set with through-hole direct connection copper sheet, and the bonding pad is cross connected

26file filter anonymous inner class and lambda optimization

Simple understanding of interpreters and compilers

Rce code and Command Execution Vulnerability
随机推荐
Driver development - hellowdm driver
浅谈镜头滤镜的类型及作用
First acquaintance with CDN
【华为机试真题详解】检查是否存在满足条件的数字组合
Solution of QT TCP packet sticking
Deep learning -yolov5 introduction to actual combat click data set training
Modbus协议通信异常
Collection + interview questions
C AES encrypts strings
Huawei equipment is configured with OSPF and BFD linkage
Realize a binary read-write address book
Oracle deletes duplicate data, leaving only one
27io stream, byte output stream, OutputStream writes data to file
Note the various data set acquisition methods of jvxetable
Vulhub vulnerability recurrence 67_ Supervisor
03. Login of development blog project
TCP three handshakes you need to know
Vulhub vulnerability recurrence 72_ uWSGI
Ora-01779: the column corresponding to the non key value saving table cannot be modified
[cloud native] 3.1 kubernetes platform installation kubespher