文件名称:mcu2
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2014-04-12
- 文件大小:
- 26kb
- 下载次数:
- 0次
- 提 供 者:
- S**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
乒乓球游戏:使用资源为 4 个按键,4 个LED 指示和2 个数码管。4 个按键分别定义为左击球,右击球,开始比赛,游戏重置;LED 亮起表示乒乓球的位置,数码管显示当前双方的比分。游戏规则如下:按动1 个按键后,游戏开始,此时如果按动左击球键,则最左边的LED 亮起,并且从左边开始不断向右边移动,当最右边1 个LED 亮起时,如果此时右击球键按下,则LED 从右边又不断向左边移动,如果提前按动了右击球,或者滞后按下右击球键,则左边数码管加1,同理如果左边出现了错误,则右边数码管加1,1 局游戏结束后,再次按下开始比赛键则开始新一轮比赛,但比分保持。在球打向右边的过程中,左击键没有作用,反之一样。在游戏过程中如果按下了游戏重置键则游戏停止并且比分清零-Table tennis game: the use of resources for the four buttons, four LED indicator and two digital tube. 4 keys are defined as hitting left, right ball to start the game, the game resets LED light indicates the position of table tennis, digital display of both current score. Rules of the game are as follows: press a button, the start of the game, this time hitting the left if you press the key, the leftmost LED lights, and began to move from the left to the right, when the rightmost one LED lights up If at this time the ball right-click button is pressed, the LED and constantly moving from the right to the left, the right-click on the ball if pressed ahead or lag the ball right click button is pressed, the left side of the digital tube plus 1, the same way if the left An error has occurred, then the right digital plus 1,1 Authority after the end of the game, press the start button again to start a new game round, but the score remained. In the course of the ball to the right, left keyst
(系统自动生成,下载前可以参看下载内容)
下载文件列表
乒乓球游戏
..........\mcu2
..........\mcu2.c
..........\mcu2.hex
..........\mcu2.lnp
..........\mcu2.LST
..........\mcu2.M51
..........\mcu2.OBJ
..........\mcu2.plg
..........\mcu2.uvopt
..........\mcu2.uvproj
..........\mcu2_uvopt.bak
..........\mcu2_uvproj.bak