51单片机编程报错问题,求指教

[复制链接]
查看11 | 回复4 | 2011-11-23 00:07:43 | 显示全部楼层 |阅读模式
给你改了下,问题不少哦 #include#define uint unsigned intsbit LED=P0^0;void delay();void mian(){while(1){ LED=0;delay();LED=1;delay();}}void delay(){uint a,b;for(a=100;a>0;a--)for(b=30000;b>0;b--);}编译通过...
回复

使用道具 举报

千问 | 2011-11-23 00:07:43 | 显示全部楼层
typedef uint unsigned int;typedef uchar unsigned char ;...
回复

使用道具 举报

千问 | 2011-11-23 00:07:43 | 显示全部楼层
关键字都不对...
回复

使用道具 举报

千问 | 2011-11-23 00:07:43 | 显示全部楼层
#include #define uint unsigned int #define uchar unsigned char sbit LED=P0^0;void delay(); main(){
while(1){
LED=0;delay();...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行