初始化:实验二 第二题
This commit is contained in:
@@ -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.
@@ -1,3 +1,5 @@
|
|||||||
|
// homework2.h
|
||||||
|
// 这个头文件用于定义每个引脚的功能
|
||||||
#include <reg52.h>
|
#include <reg52.h>
|
||||||
|
|
||||||
sbit D1 = P2 ^ 7;
|
sbit D1 = P2 ^ 7;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
// 点亮一个小灯泡
|
// test1.c
|
||||||
|
// 点亮一个小灯泡
|
||||||
#include <reg52.h>
|
#include <reg52.h>
|
||||||
#include "homework2.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