摘要:
要求:P1口接2只LED灯,定时器 T1采用计数模式,方式1中断,外接按钮开关作为计数输入,当按2次按钮开关,P1 口第一只LED点亮,再按2次按钮开关,P1口第二只LED点亮,再按2次按钮,所有LED 灯熄灭。 #include <reg52.h> // 定义 LED 灯的控制端口和对应的控制位 阅读全文
posted @ 2023-06-13 14:43
羽小兮
阅读(233)
评论(0)
推荐(0)
摘要:
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> int dec2bin(int n) { // 十进制转二进制 if (n == 0) { return 0; } else { return 阅读全文
posted @ 2023-06-13 14:41
羽小兮
阅读(2391)
评论(0)
推荐(0)
摘要:
使用 C# 中的 `System.IO` 和 `Microsoft.Office.Interop.Excel` 库来实现读取文本文件和写入 Excel 文件。 以下是一个示例代码: 1 using System; 2 using System.IO; 3 using System.Windows.F 阅读全文
posted @ 2023-06-13 14:36
羽小兮
阅读(548)
评论(0)
推荐(0)

浙公网安备 33010602011771号