摘要:tx和rx提供双缓冲,硬件流控制,适合高吞吐的全双工,有高精度波特率发生 P0_2 ->RX P0_3 ->TX
阅读全文
摘要:1 #include 2 3 typedef unsigned char uchar; 4 typedef unsigned int uint; 5 6 uint flag = 0; //用于定时器计数 7 8 #define LED1 P1_0 9 #define LED2 P1_1 10 #define LED3 P1_2 11 #define L...
阅读全文
摘要:1 #include 2 3 typedef unsigned char uchar; 4 typedef unsigned int uint; 5 6 #define LED1 P1_0 7 8 void led_init(void) 9 { 10 P1DIR |= 0X01; 11 LED1 = 0; 12 } 13 14 void T1_init(voi...
阅读全文
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 //using System.Diagnostics; 7 using System.IO; 8 9 10 namesp...
阅读全文
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 using System.Diagnostics; 7 8 9 namespace ConsoleApplication...
阅读全文
摘要:1 //运行实例方法 2 3 class Program { 4 public void myThreadMethod() 5 { 6 Console.WriteLine("myThreadMethod"); 7 } 8 static void Main(string[] a...
阅读全文
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading; 6 7 namespace Consoleapplication 8 { 9 //类名Program 10 class P...
阅读全文
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7 using System.Text; 8 using System.Window...
阅读全文
摘要:1 #ifndef MAINWINDOW_H 2 #define MAINWINDOW_H 3 4 #include 5 #include 6 #include 7 8 class MainWindow : public QMainWindow 9 { 10 Q_OBJECT 11 12 public: 13 MainWindow(QWidg...
阅读全文
摘要:the QCheckBox widget provides a checkbox with a text label a QCheckBox is an option button that can be switched on or off QSizePolicy grabWindow
阅读全文
摘要:附图 写这个东东的背景,主要是服务于公司打印机的电脑,此电脑属于公用,但极少人会下班时给它关机。为了使这个电脑能再服务多几年,自动关机程序就诞生了。 难度不大,在写之前,我定义了几个基本的功能。 获取当前主机的系统时间 输入期望关机时间 运算时间差 执行自动关机命令 写入日志文件记录。 以上思路清晰
阅读全文