09 2018 档案

串口通信
摘要:tx和rx提供双缓冲,硬件流控制,适合高吞吐的全双工,有高精度波特率发生 P0_2 ->RX P0_3 ->TX 阅读全文

posted @ 2018-09-27 16:50 fortwater 阅读(153) 评论(0) 推荐(0)

定时器T1
摘要:查询方式 阅读全文

posted @ 2018-09-27 13:58 fortwater 阅读(803) 评论(0) 推荐(0)

定时器延时
摘要: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... 阅读全文

posted @ 2018-09-26 22:42 fortwater 阅读(259) 评论(0) 推荐(0)

cc2540->led/timer
摘要: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... 阅读全文

posted @ 2018-09-26 20:59 fortwater 阅读(176) 评论(0) 推荐(0)

output oneself log txt
摘要: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... 阅读全文

posted @ 2018-09-21 10:13 fortwater 阅读(128) 评论(0) 推荐(0)

establish log file in system
摘要: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... 阅读全文

posted @ 2018-09-21 08:22 fortwater 阅读(129) 评论(0) 推荐(0)

Thread 实例化
摘要:1 //运行实例方法 2 3 class Program { 4 public void myThreadMethod() 5 { 6 Console.WriteLine("myThreadMethod"); 7 } 8 static void Main(string[] a... 阅读全文

posted @ 2018-09-19 16:51 fortwater 阅读(118) 评论(0) 推荐(0)

Thread类
摘要: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... 阅读全文

posted @ 2018-09-19 15:12 fortwater 阅读(149) 评论(0) 推荐(0)

temperature translate tool
摘要: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... 阅读全文

posted @ 2018-09-18 17:36 fortwater 阅读(194) 评论(0) 推荐(0)

鼠标响应事件
摘要: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... 阅读全文

posted @ 2018-09-17 09:28 fortwater 阅读(438) 评论(0) 推荐(0)

QCheckBox
摘要: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 阅读全文

posted @ 2018-09-14 13:40 fortwater 阅读(159) 评论(0) 推荐(0)

bat文件自动关机
摘要:附图 写这个东东的背景,主要是服务于公司打印机的电脑,此电脑属于公用,但极少人会下班时给它关机。为了使这个电脑能再服务多几年,自动关机程序就诞生了。 难度不大,在写之前,我定义了几个基本的功能。 获取当前主机的系统时间 输入期望关机时间 运算时间差 执行自动关机命令 写入日志文件记录。 以上思路清晰 阅读全文

posted @ 2018-09-12 16:04 fortwater 阅读(362) 评论(0) 推荐(0)

QSyntaxHighlighter Class
摘要:syntax语法 query查询 阅读全文

posted @ 2018-09-12 15:46 fortwater 阅读(130) 评论(0) 推荐(0)

导航