Settings
|
Sign in
|
Sign up
Bar
Post
Home
>
Bar AVR單片機
>
View post
Reply the post
|
View author only
There is currently
1
post.
【代碼】點亮一個發光二極體的程序
Floor 1
巨大八爪鱼
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;
}
}
Content converter:
No conversion
Mainland
Taiwan
Hong Kong
Singapore
Reply the post
Content:
User:
You are currently anonymous.
Captcha:
Unclear? Try another one.
©2010-2025 Purasbar Ver3.0 [Mobile] [
Desktop
]
Except where otherwise noted, content on
this site
is licensed under a
Creative Commons Attribution-ShareAlike 3.0 Unported license
.