初始化:实验二 第二题
This commit is contained in:
@@ -24,7 +24,8 @@
|
||||
"editor.insertSpaces": true,
|
||||
"editor.tabSize": 4,
|
||||
"editor.autoIndent": "advanced"
|
||||
}
|
||||
},
|
||||
"cSpell.words": ["ENLED"]
|
||||
},
|
||||
"extensions": {
|
||||
"recommendations": [
|
||||
|
||||
Binary file not shown.
@@ -1,3 +1,5 @@
|
||||
// homework2.h
|
||||
// 这个头文件用于定义每个引脚的功能
|
||||
#include <reg52.h>
|
||||
|
||||
sbit D1 = P2 ^ 7;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// test1.c
|
||||
// 点亮一个小灯泡
|
||||
#include <reg52.h>
|
||||
#include "homework2.h"
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
//test2.c
|
||||
//让一个LED灯闪烁
|
||||
#include <reg52.h>
|
||||
#include"homework2.h"
|
||||
void main(){
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user