The author has 1 post.
Font size: Small - 100% (Default)  Content converter: No conversion
 
Clicks Replies
1234 0
【代码】点亮一个发光二极管的程序
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 1 Posted at: 7/18/12 21:05
#include <iom16v.h> //mega16头文件
#include <macros.h> //AVR单片机系统函数文件(bit(x))
#define LED0_0 PORTA&=~BIT(0) //输出低电平
#define LED0_1 PORTA|=BIT(0) //输出高电平
void
void main()
{
   DDRA=0xff;
  PORTA=0xff;
  while (1)
  {
       LED0_0;
  }
}
Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.
(Shortcut key: Ctrl+Enter)
Post Information
Clicks: 1234 Replies: 0
Author: 巨大八爪鱼
Last reply: 巨大八爪鱼
Last reply time: 7/18/12 21:05
Bar Good Posts
Announcements