-
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
-
基于单片机的智能计算器
说明: 基于51单片机的简易计算器,能够实现简单的的加减乘除操作(A simple calculator based on 51 single chip computer can realize simple operation of addition, subtraction, multiplication and division.)
- 2020-06-20 20:40:01下载
- 积分:1
-
MPU-6050-89C52程序
说明: 在51单片机上使用89C52的MPU,可以实现MPU6050采集数据,并且在1602上准确显示(Using 89C52 MPU on 51 single chip microcomputer, mpu6050 can collect data and display accurately on 1602)
- 2019-12-15 15:13:27下载
- 积分:1
-
Exam1
icarnegie系列教程SSD4的Exam1 标准满分答案,希望对大家会有所帮助(icarnegie standard series of tutorials SSD4 the Exam1 out the answer, we want to be helpful)
- 2010-12-06 17:44:44下载
- 积分:1
-
IEC_101
电力规约代码101协议代码,经过大量现场运行验证,与国内外各大公司产品进行过互操作实验。(101 Source protocol)
- 2014-01-06 14:49:02下载
- 积分:1
-
BIN_IN
说明: keil C51 环境下 C语言编程 中直接输入二进制的头文件(Direct Input of Binary Header File in C Language Programming under Keil C51 Environment)
- 2019-03-10 16:17:35下载
- 积分:1
-
lcd1602C
xl系列单片机实验仪演示程序 LCD1602显示 步进电机控制器速度方向圈数可调 LCD1602显示 步进电机控制器速度方向圈数可调 K1-启动与停止步进电机运行 K2-设定步进电机运行圈数 (1-20圈) K3-设定步进电机转动方向 K4-设定步进电机运行速度 步进电机的转速控制分16档,数字越小,转速越快。 7.5度步进电机;周期7.5×4=30度,电机转动一圈需12个周期 资源:p1.0-p1.3接反向器74ls14,输出后接步进电机 p3.7接小喇叭提供按键音, p1.4-p1.7接端口按键:lcd1602插入实验仪(xl Series Singlechip Experiment LCD1602 demo program shows the direction of stepper motor speed controller circle shows the number of adjustable LCD1602 direction stepper motor controller lap speed of a few adjustable K1-start and stop the stepper motor running K2-setting step motor running a few laps (1-20 laps) K3-set stepper motor rotation direction of K4-setting speed of stepper motor stepper motor speed control minutes 16 stalls, the number of smaller, faster the speed. 7.5 degree stepper motor cycle of 7.5 × 4 = 30 degrees, rotating electric lap 12 cycles required resources: p1.0-p1.3 then reverse browser 74ls14, followed by stepper motor output p3.7 then provide a small speaker key tone, p1.4-p1.7 port access keys: lcd1602 insert Tester)
- 2008-12-19 10:42:22下载
- 积分:1
-
MCP2515_CAN232_CAN
MCP2515实现CAN232功能
2515初始化程序
CAN发送子程序,查询发送
CAN接收子程序,中断接收
硬件连接: AT89S51/52+MCP2515(MCP2515 features to achieve CAN232
2515 initialization procedure
CAN send subroutine, send a query
CAN receives subroutine, interrupt reception
Hardware connection: AT89S51/52+ MCP2515)
- 2013-12-04 11:10:22下载
- 积分:1
-
一天攻破K60&KL26
说明: 一天攻破k60,包含k60的基础知识,开发软件介绍(One day to break through k60, including the basic knowledge of k60, development software introduction)
- 2020-06-19 19:40:02下载
- 积分:1
-
vl6180x
能实现精度高达1mm测距,还具有测量光强,手势功能(It can achieve up to 1mm precision ranging, and also has the function of measuring light intensity and gesture)
- 2020-09-10 14:28:02下载
- 积分:1