初始化:实验二 第二题

This commit is contained in:
2025-03-15 20:22:26 +08:00
parent 5e08e8f5c1
commit 0c2460c697
5 changed files with 54 additions and 43 deletions
+2 -1
View File
@@ -24,7 +24,8 @@
"editor.insertSpaces": true,
"editor.tabSize": 4,
"editor.autoIndent": "advanced"
}
},
"cSpell.words": ["ENLED"]
},
"extensions": {
"recommendations": [
Binary file not shown.
+2
View File
@@ -1,3 +1,5 @@
// homework2.h
// 这个头文件用于定义每个引脚的功能
#include <reg52.h>
sbit D1 = P2 ^ 7;
+1
View File
@@ -1,3 +1,4 @@
// test1.c
// 点亮一个小灯泡
#include <reg52.h>
#include "homework2.h"
+7
View File
@@ -0,0 +1,7 @@
//test2.c
//让一个LED灯闪烁
#include <reg52.h>
#include"homework2.h"
void main(){
}