完成:实验二 第二题
This commit is contained in:
+16
-5
@@ -1,7 +1,18 @@
|
||||
//test2.c
|
||||
//让一个LED灯闪烁
|
||||
// test2.c
|
||||
// 让一个LED灯闪烁
|
||||
#include <reg52.h>
|
||||
#include"homework2.h"
|
||||
void main(){
|
||||
|
||||
#include "homework2.h"
|
||||
void main()
|
||||
{
|
||||
ENLED = 0;
|
||||
ADDR3 = 1;
|
||||
ADDR2 = 1;
|
||||
ADDR1 = 1;
|
||||
ADDR0 = 0;
|
||||
while (1) {
|
||||
D1 = 0;
|
||||
Delay(100000);
|
||||
D1 = 1;
|
||||
Delay(100000);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user