完成:实验二 第二题

This commit is contained in:
2025-03-15 20:34:16 +08:00
parent 0c2460c697
commit 6b3a8c0d5c
2 changed files with 19 additions and 6 deletions
+3 -1
View File
@@ -18,7 +18,9 @@
}, },
"targets": { "targets": {
"Debug": { "Debug": {
"excludeList": [], "excludeList": [
"src/test1.c"
],
"toolchain": "Keil_C51", "toolchain": "Keil_C51",
"compileConfig": { "compileConfig": {
"options": "null" "options": "null"
+13 -2
View File
@@ -2,6 +2,17 @@
// 让一个LED灯闪烁 // 让一个LED灯闪烁
#include <reg52.h> #include <reg52.h>
#include "homework2.h" #include "homework2.h"
void main(){ void main()
{
ENLED = 0;
ADDR3 = 1;
ADDR2 = 1;
ADDR1 = 1;
ADDR0 = 0;
while (1) {
D1 = 0;
Delay(100000);
D1 = 1;
Delay(100000);
}
} }