remove: homework7
This commit is contained in:
@@ -1,38 +0,0 @@
|
||||
---
|
||||
BasedOnStyle: Microsoft
|
||||
Language: Cpp
|
||||
|
||||
###################################
|
||||
# indent conf
|
||||
###################################
|
||||
|
||||
UseTab: Never
|
||||
IndentWidth: 4
|
||||
TabWidth: 4
|
||||
ColumnLimit: 0
|
||||
AccessModifierOffset: -4
|
||||
NamespaceIndentation: All
|
||||
FixNamespaceComments: false
|
||||
BreakBeforeBraces: Linux
|
||||
|
||||
###################################
|
||||
# other styles
|
||||
###################################
|
||||
|
||||
#
|
||||
# for more conf, you can ref: https://clang.llvm.org/docs/ClangFormatStyleOptions.html
|
||||
#
|
||||
|
||||
AllowShortIfStatementsOnASingleLine: true
|
||||
|
||||
AllowShortLoopsOnASingleLine: true
|
||||
|
||||
AllowShortBlocksOnASingleLine: true
|
||||
|
||||
IndentCaseLabels: true
|
||||
|
||||
SortIncludes: false
|
||||
|
||||
AlignConsecutiveMacros: AcrossEmptyLines
|
||||
|
||||
AlignConsecutiveAssignments: Consecutive
|
||||
@@ -1,80 +0,0 @@
|
||||
{
|
||||
"name": "homework7",
|
||||
"type": "C51",
|
||||
"dependenceList": [],
|
||||
"srcDirs": [
|
||||
"src"
|
||||
],
|
||||
"virtualFolder": {
|
||||
"name": "<virtual_root>",
|
||||
"files": [],
|
||||
"folders": []
|
||||
},
|
||||
"outDir": "build",
|
||||
"deviceName": null,
|
||||
"packDir": null,
|
||||
"miscInfo": {
|
||||
"uid": "4e17dc284b11fabcd6a1c4a77934f48d"
|
||||
},
|
||||
"targets": {
|
||||
"Debug": {
|
||||
"excludeList": [],
|
||||
"toolchain": "Keil_C51",
|
||||
"compileConfig": {
|
||||
"options": "null"
|
||||
},
|
||||
"uploader": "Custom",
|
||||
"uploadConfig": {
|
||||
"bin": "",
|
||||
"commandLine": "",
|
||||
"eraseChipCommand": ""
|
||||
},
|
||||
"uploadConfigMap": {},
|
||||
"custom_dep": {
|
||||
"name": "default",
|
||||
"incList": [],
|
||||
"libList": [],
|
||||
"defineList": []
|
||||
},
|
||||
"builderOptions": {
|
||||
"SDCC": {
|
||||
"version": 3,
|
||||
"beforeBuildTasks": [],
|
||||
"afterBuildTasks": [],
|
||||
"global": {
|
||||
"device": "mcs51",
|
||||
"optimize-type": "speed",
|
||||
"use-non-free": false
|
||||
},
|
||||
"c/cpp-compiler": {
|
||||
"language-c": "c99"
|
||||
},
|
||||
"asm-compiler": {},
|
||||
"linker": {
|
||||
"$mainFileName": "main",
|
||||
"output-format": "hex"
|
||||
}
|
||||
},
|
||||
"Keil_C51": {
|
||||
"version": 2,
|
||||
"beforeBuildTasks": [],
|
||||
"afterBuildTasks": [],
|
||||
"global": {
|
||||
"ram-mode": "SMALL",
|
||||
"rom-mode": "LARGE"
|
||||
},
|
||||
"c/cpp-compiler": {
|
||||
"optimization-type": "SPEED",
|
||||
"optimization-level": "level-8"
|
||||
},
|
||||
"asm-compiler": {},
|
||||
"linker": {
|
||||
"remove-unused": true,
|
||||
"output-format": "elf"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"version": "3.5"
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
##########################################################################################
|
||||
# Append Compiler Options For Source Files
|
||||
##########################################################################################
|
||||
|
||||
# syntax:
|
||||
# <your pattern>: <compiler options>
|
||||
# For get pattern syntax, please refer to: https://www.npmjs.com/package/micromatch
|
||||
#
|
||||
# examples:
|
||||
# 'main.cpp': --cpp11 -Og ...
|
||||
# 'src/*.c': -gnu -O2 ...
|
||||
# 'src/lib/**/*.cpp': --cpp11 -Os ...
|
||||
# '!Application/*.c': -O0
|
||||
# '**/*.c': -O2 -gnu ...
|
||||
|
||||
version: "2.0"
|
||||
options:
|
||||
Debug:
|
||||
files: {}
|
||||
virtualPathFiles: {}
|
||||
@@ -1,15 +0,0 @@
|
||||
# dot files
|
||||
/.vscode/launch.json
|
||||
/.settings
|
||||
/.eide/log
|
||||
/.eide.usr.ctx.json
|
||||
|
||||
# project out
|
||||
/build
|
||||
/bin
|
||||
/obj
|
||||
/out
|
||||
|
||||
# eide template
|
||||
*.ept
|
||||
*.eide-template
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
{}
|
||||
Vendored
-40
@@ -1,40 +0,0 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "build",
|
||||
"type": "shell",
|
||||
"command": "${command:eide.project.build}",
|
||||
"group": "build",
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "flash",
|
||||
"type": "shell",
|
||||
"command": "${command:eide.project.uploadToDevice}",
|
||||
"group": "build",
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "build and flash",
|
||||
"type": "shell",
|
||||
"command": "${command:eide.project.buildAndFlash}",
|
||||
"group": "build",
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "rebuild",
|
||||
"type": "shell",
|
||||
"command": "${command:eide.project.rebuild}",
|
||||
"group": "build",
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "clean",
|
||||
"type": "shell",
|
||||
"command": "${command:eide.project.clean}",
|
||||
"group": "build",
|
||||
"problemMatcher": []
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
{
|
||||
"folders": [
|
||||
{
|
||||
"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"
|
||||
]
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@@ -1,47 +0,0 @@
|
||||
/*
|
||||
* name: homework7.h
|
||||
* author: msksbr
|
||||
* date: 2025-5-20
|
||||
* purpose:
|
||||
* variable:
|
||||
* 1. pins number for 8x8 LED matrix
|
||||
* function:
|
||||
* 1. initialize the 8x8 LED matrix x template
|
||||
*/
|
||||
|
||||
#include <REG52.H>
|
||||
|
||||
// variable:
|
||||
// 1. pins number for 8x8 LED matrix:
|
||||
// Y template:
|
||||
sbit LED_Y0 = P2 ^ 0;
|
||||
sbit LED_Y1 = P2 ^ 1;
|
||||
sbit LED_Y2 = P2 ^ 2;
|
||||
sbit LED_Y3 = P2 ^ 3;
|
||||
sbit LED_Y4 = P2 ^ 4;
|
||||
sbit LED_Y5 = P2 ^ 5;
|
||||
sbit LED_Y6 = P2 ^ 6;
|
||||
sbit LED_Y7 = P2 ^ 7;
|
||||
// X template:
|
||||
sbit LED_X0 = P3 ^ 0;
|
||||
sbit LED_X1 = P3 ^ 1;
|
||||
sbit LED_X2 = P3 ^ 2;
|
||||
sbit LED_X3 = P3 ^ 3;
|
||||
sbit LED_X4 = P3 ^ 4;
|
||||
sbit LED_X5 = P3 ^ 5;
|
||||
sbit LED_X6 = P3 ^ 6;
|
||||
sbit LED_X7 = P3 ^ 7;
|
||||
|
||||
// function:
|
||||
// 1. initialize the 8x8 LED matrix x template:
|
||||
void init_x_template()
|
||||
{
|
||||
LED_X0 = 0;
|
||||
LED_X1 = 0;
|
||||
LED_X2 = 0;
|
||||
LED_X3 = 0;
|
||||
LED_X4 = 0;
|
||||
LED_X5 = 0;
|
||||
LED_X6 = 0;
|
||||
LED_X7 = 0;
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
/*
|
||||
* name: test1.c
|
||||
* author: msksbr
|
||||
* date: 2025-5-20
|
||||
* description: a test program for a homework
|
||||
* homework zh_CN: 点亮点阵左上角的那个LED小灯
|
||||
* homework en_US: light up the LED in the top left corner of the LED matrix
|
||||
*/
|
||||
|
||||
#include "homework7.h"
|
||||
|
||||
void test1()
|
||||
{
|
||||
init_x_template();
|
||||
LED_X0 = 1;
|
||||
LED_Y7 = 0;
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
test1();
|
||||
}
|
||||
Reference in New Issue
Block a user