main.c
#include <stc15f2k60s2.h>
#include <intrins.h>
#include "chaoshengbo.h"
void Timer0Init(void);
void xianshi();
unsigned char display[]={
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff};
unsigned char shuzu[]={
0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};
void main()
{
Timer0Init();EA=1;ET0=1;
P2=P2&0X1F|0XA0;P0=0X00;P2&=0X1F;
while(1)

本文介绍了使用STC15F2K60S2单片机进行超声波测距的编程实现,主要涉及`main.c`、`chaoshengbo.c`和`chaoshengbo.h`三个关键文件的详细内容。
最低0.47元/天 解锁文章
824

被折叠的 条评论
为什么被折叠?



