一、XXXXX
MarkDown 详细教程文本
Markdown保姆级教程之基础篇(Typora使用教程)视频教程
20分钟教你使用Markdown(视频教程)
1. XXX
2. XXX
啊啊啊啊啊啊啊啊啊啊啊
啊啊啊啊啊啊啊啊啊啊啊啊
啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
#include <reg52.h> //51头文件
#include <intrins.h>//包含循环右移函数_cror头文件
#define uint unsigned int
#define uchar unsigned char
uchar temp,x,y;//全局变量,赋值时变量的类型要和被赋值的值类型一样,P1口是八位寄存器,uchar也是八位
void Delay1000ms();
sbit LED1=P0^0;
sbit LED2=P0^1;
sbit LED3=P0^2;
sbit LED4=P0^3;
sbit LED5=P0^4;
sbit LED6=P0^5;
sbit LED7=P0^6;
sbit LED8=P0^7;
sbit LED9=P1^0;
sbit LED10=P1^1;
sbit LED11=P1^2;
sbit LED12=P1^3;
sbit LED13=P1^4;
sbit LED14=P1^5;
sbit LED15=P1^6;
sbit LED16=P1^7;
sbit LED25=P3^0;
sbit LED26=P3^1;
sbit LED27=P3^2;
sbit LED28=P3^3;
sbit LED29=P3^4;
sbit LED30=P3^5;
sbit LED31=P3^6;
sbit LED32=P3^7;
sbit LED20=P2^0;
sbit LED19=P2^1;
sbit LED18=P2^2;
sbit LED17=P2^3;
sbit LED24=P2^4;
sbit LED23=P2^5;
sbit LED22=P2^6;
sbit LED21=P2^7;
void main()
{
while(1)
{
x=0;
LED1=0;
Delay1000ms();
LED2=0;
Delay1000ms();
LED3=0;
Delay1000ms();
LED4=0;
Delay1000ms();
LED5=0;
Delay1000ms();
LED6=0;
Delay1000ms();
LED7=0;
Delay1000ms();
LED8=0;
Delay1000ms();
LED21=0;
Delay1000ms();
LED22=0;
Delay1000ms();
LED23=0;
Delay1000ms();
LED24=0;
Delay1000ms();
LED17=0;
Delay1000ms();
LED18=0;
Delay1000ms();
LED19=0;
Delay1000ms();
LED20=0;
Delay1000ms();
LED32=0;
Delay1000ms();
LED30=0;
Delay1000ms();
LED29=0;
Delay1000ms();
LED28=0;
Delay1000ms();
LED27=0;
Delay1000ms();
LED26=0;
Delay1000ms();
LED25=0;
Delay1000ms();
LED16=0;
Delay1000ms();
LED15=0;
Delay1000ms();
LED14=0;
Delay1000ms();
LED13=0;
Delay1000ms();
LED12=0;
Delay1000ms();
LED11=0;
Delay1000ms();
LED10=0;
Delay1000ms();
LED9=0;
for(x;x<8;x++)
{
Delay1000ms();
P0=0xff;
P1=0xff;
P2=0xff;
P3=0xff;
Delay1000ms();
P0=0x00;
P1=0x00;
P2=0x00;
P3=0x00;
}
P0=0xff;
P1=0xff;
P2=0xff;
P3=0xff;
Delay1000ms();
Delay1000ms();
}
}
void Delay1000ms() //@11.0592MHz
{
unsigned char i, j, k;
_nop_();
_nop_();
i = 43;
j = 6;
k = 203;
do
{
do
{
while (--k);
} while (--j);
} while (--i);
}
- aaaaaaaa
- aaaaaaaaa
- aaaaaaaa
123456
1231231
1231546123123
123123123123456879
文章转自:
原文所在:布尔青年