MSP430F5529 单片机 Memory game 记忆游戏 OLED实验

为了便于开发,我做了一块扩展板子:
https://blog.csdn.net/x1131230123/article/details/108772807
扩展板有一些常用器件,这样开发MSP430 F5529程序的时候,就不用杜邦线连接了。当然也可以选择杜邦线连接器件,效果都一样。

Memory game. Draw 4 geometric shapes in positions on the screen touching each other. Display to the player for 1 second. Move the 4 shapes to random points on the screen. The player must select each shape and move it back to correct position in the least amount of time. Computer must judge “close” to goal and show time to complete

接线

/*
 * OLED模式设置
 * -----------------OLED端口定义---------------
 * OLED----MSP430
 * VCC-----3.3V
 * GND-----GND
 * D0------P3.2
 * D1------P3.0
 * RES-----P2.0
 * DC------P2.2
 * CS------P8.1
 */

按键1 左移动
按键2 右移动
按键2长按 选中或者取消选中

随机生成形状顺序:
在这里插入图片描述

开始计时还原:
在这里插入图片描述

版权声明:本文为CSDN博主「Q742971636」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/x1131230123/article/details/122019168

为了便于开发,我做了一块扩展板子:
https://blog.csdn.net/x1131230123/article/details/108772807
扩展板有一些常用器件,这样开发MSP430 F5529程序的时候,就不用杜邦线连接了。当然也可以选择杜邦线连接器件,效果都一样。

Memory game. Draw 4 geometric shapes in positions on the screen touching each other. Display to the player for 1 second. Move the 4 shapes to random points on the screen. The player must select each shape and move it back to correct position in the least amount of time. Computer must judge “close” to goal and show time to complete

接线

/*
 * OLED模式设置
 * -----------------OLED端口定义---------------
 * OLED----MSP430
 * VCC-----3.3V
 * GND-----GND
 * D0------P3.2
 * D1------P3.0
 * RES-----P2.0
 * DC------P2.2
 * CS------P8.1
 */

按键1 左移动
按键2 右移动
按键2长按 选中或者取消选中

随机生成形状顺序:
在这里插入图片描述

开始计时还原:
在这里插入图片描述

版权声明:本文为CSDN博主「Q742971636」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/x1131230123/article/details/122019168

生成海报
点赞 0

Q742971636

我还没有学会写个人说明!

暂无评论

发表评论

相关推荐

ESP32+0.96寸OLED

ESP32点亮0.96寸LED 考虑在上一篇的写那个项目中添加一个屏幕的显示,OLED屏幕为淘宝购买的6针型号蓝绿双色的屏幕,通过四线SPI与ESP32连接。 OLED屏电路图 OLED实物图 这是连接好运行后的