初始化:实验二 第二题

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
+42 -41
View File
@@ -1,44 +1,45 @@
{ {
"folders": [ "folders": [
{ {
"path": "." "path": "."
}
],
"settings": {
"files.autoGuessEncoding": true,
"C_Cpp.default.configurationProvider": "cl.eide",
"C_Cpp.errorSquiggles": "disabled",
"files.associations": {
".eideignore": "ignore",
"*.a51": "a51",
"*.h": "c",
"*.c": "c",
"*.hxx": "cpp",
"*.hpp": "cpp",
"*.c++": "cpp",
"*.cpp": "cpp",
"*.cxx": "cpp",
"*.cc": "cpp"
},
"[yaml]": {
"editor.insertSpaces": true,
"editor.tabSize": 4,
"editor.autoIndent": "advanced"
}
},
"extensions": {
"recommendations": [
"cl.eide",
"keroc.hex-fmt",
"xiaoyongdong.srecord",
"hars.cppsnippets",
"zixuanwang.linkerscript",
"redhat.vscode-yaml",
"IBM.output-colorizer",
"cschlosser.doxdocgen",
"ms-vscode.vscode-serial-monitor",
"alefragnani.project-manager",
"cl.stm8-debug"
]
} }
],
"settings": {
"files.autoGuessEncoding": true,
"C_Cpp.default.configurationProvider": "cl.eide",
"C_Cpp.errorSquiggles": "disabled",
"files.associations": {
".eideignore": "ignore",
"*.a51": "a51",
"*.h": "c",
"*.c": "c",
"*.hxx": "cpp",
"*.hpp": "cpp",
"*.c++": "cpp",
"*.cpp": "cpp",
"*.cxx": "cpp",
"*.cc": "cpp"
},
"[yaml]": {
"editor.insertSpaces": true,
"editor.tabSize": 4,
"editor.autoIndent": "advanced"
},
"cSpell.words": ["ENLED"]
},
"extensions": {
"recommendations": [
"cl.eide",
"keroc.hex-fmt",
"xiaoyongdong.srecord",
"hars.cppsnippets",
"zixuanwang.linkerscript",
"redhat.vscode-yaml",
"IBM.output-colorizer",
"cschlosser.doxdocgen",
"ms-vscode.vscode-serial-monitor",
"alefragnani.project-manager",
"cl.stm8-debug"
]
}
} }
Binary file not shown.
+2
View File
@@ -1,3 +1,5 @@
// homework2.h
// 这个头文件用于定义每个引脚的功能
#include <reg52.h> #include <reg52.h>
sbit D1 = P2 ^ 7; sbit D1 = P2 ^ 7;
+2 -1
View File
@@ -1,4 +1,5 @@
// 点亮一个小灯泡 // test1.c
// 点亮一个小灯泡
#include <reg52.h> #include <reg52.h>
#include "homework2.h" #include "homework2.h"
+7
View File
@@ -0,0 +1,7 @@
//test2.c
//让一个LED灯闪烁
#include <reg52.h>
#include"homework2.h"
void main(){
}