-
8x8snake
while(1)
{//if(keyenable==1){P1=0x00 P2=0xff }else{P1=0xff P2=0x00 }
for(i=3 i<SNAKE+1 i++)x[i]=100 for(i=3 i<SNAKE+1 i++)y[i]=100 //初始化
x[0]=4 y[0]=4 //果子
n=3 //蛇长 n=-1
x[1]=1 y[1]=0 //蛇头
x[2]=0 y[2]=0 //蛇尾1
addx=0 addy=0 //位移偏移
//k=1
while(1){if(keyenable)break timer0(1) }
while(1)
{timer0(e)
if(knock()){e=SPEED break } //判断碰撞
if((x[0]==x[1]+addx)&(y[0]==y[1]+addy)) //是否吃东西
- 2011-07-09 23:00:46下载
- 积分:1
-
HART
HART设计代码和硬件电路图纸,绝对的有用,方便你的设计(HART code and hardware circuit design drawings, absolutely useful and convenient for your design)
- 2021-02-24 13:59:40下载
- 积分:1
-
control-stepper
可控步进电机程序 msp430 tb6560(Controlled stepper motor program msp430 tb6560)
- 2013-05-18 19:04:33下载
- 积分:1
-
万年历(闹钟时分1602)
说明: 基于51单片机设计的万年历,采用LCD1602实现时间的显示(年月日时分秒)时间以及闹钟的设置(Based on the calendar designed by 51 single chip computer, LCD1602 is used to realize the display of time (year, month, day, hour, second) and the setting of alarm clock.)
- 2019-05-13 14:58:31下载
- 积分:1
-
shangehua
编写的一个栅格化的程序,用来将图进行栅格化处理。(Prepared a rasterization process,It is used for rasterization of the diagram.)
- 2014-06-22 11:52:06下载
- 积分:1
-
Tiva_SPWM
说明: 采用定时器,及单片机TM4C123G的PWM模块,产生SPWM波,且波表无需额外生成(The timer is used, and the PWM module of the single chip TM4C123G generates the SPWM wave, and the wave table does not need to be additionally generated.)
- 2021-03-10 10:49:27下载
- 积分:1
-
www.mcufz.com
网络控制单片机proteus仿真
利用网络控制单片机的LED、LCD,我只是整理了一下,方便大家学习,版权归原作者,网页也麻烦站长做好了,有一个上位机,点击自动运行一段程序和打开www.mcufz.com/tcp.htm,之后会自动关闭,有的杀毒软件会报是病毒,放心使用。
开始要安装一个WinPcap软件,不安装它不能仿真,然后运行仿真文件,过一会可以看到LCD显示出了IP地址50。1。1。1
(Proteus simulation network control the use of single-chip microcontroller network control LED, LCD, I am just finishing a bit, to facilitate learning, belongs to original author, the website also do a good job of head trouble, there is a host computer, click Automatic operation for some procedures and open www.mcufz.com/tcp.htm, will automatically shut down after some anti-virus software will be reported to viruses, ease of use. WinPcap started to install a software, do not install it can not simulation, and then run the simulation documents LCD moment we can see the IP addresses shows that 50. 1. 1.1)
- 2009-05-29 05:29:37下载
- 积分:1
-
modscan32tidy
MODSCAN32英文版,
很好用的。(MODSCAN English, very good use.)
- 2010-08-23 21:27:05下载
- 积分:1
-
12864zb
msp430 带字库12864zb的并行显示程序(Parallel with character display program 12864zb)
- 2010-08-05 19:37:13下载
- 积分:1
-
simplis-examples
simplis的学习资料,里面包含了很多实际的设计实例,希望对大家的学习有些帮助……(simplis learning materials, which contains a lot of practical design examples, we want to study some help ... ...)
- 2012-01-04 17:25:52下载
- 积分:1