自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 资源 (6)
  • 收藏
  • 关注

转载 QT软件快捷键

F1        查看帮助F2        跳转到函数定义(和Ctrl+鼠标左键一样的效果)Shift+F2    声明和定义之间切换F4        头文件和源文件之间切换Ctrl+1         欢迎模式Ctrl+2        编辑模式Ctrl+3        调试模式Ctrl+4        项目设置模式Ctrl+5        帮助模式    Ctrl...

2018-12-27 14:24:38 170

原创 QT打开调用其他应用程序QProcess

.h文件中添加#include <QProcess>private: QProcess *process;.cpp文件中添加process = new QProcess(this);//加载开始process->start("C:/Users/Administrator/Desktop/Debug/HaiGong.exe");//打开程序pr...

2018-12-26 21:46:15 1896

原创 QT去掉外边框

setWindowFlags(Qt::FramelessWindowHint);

2018-12-26 21:39:13 4878

原创 C语言strtoul()函数+C语言strtol()函数

C语言strtoul()函数unsigned long strtoul (const char* str, char** endptr, int base);【参数说明】str 为要转换的字符串,endstr 为第一个不能转换的字符的指针,base 为字符串 str 所采用的进制。【函数说明】strtoul() 会将参数 str 字符串根据参数 base 来转换成无符号的长整型数(unsign...

2018-03-03 13:59:03 601

原创 网线接法

摄像头的8种颜色:橙、黄、绿、紫、灰、蓝、棕、白分别对应双绞线的8种颜色:橙白、橙、绿白、蓝、蓝白、绿、棕白、棕简化一点用网线的568B顺序分别对接就是:橙白(接橙色)、橙(接黄色)、绿白(接绿色)、蓝(接紫色)、蓝白(接灰色)、绿(接蓝色)、棕白(接棕色)、棕(接白色)568A标准:绿白,绿,橙白,蓝,蓝白,橙,棕白,棕 橙绿蓝棕 排列好,先4-6交叉,再1-3、2-

2017-04-30 09:49:12 1375

转载 MFC保存text文件自动地以当前日期+时间命名文件

CTime tm = CTime::GetCurrentTime();  CString str2;  str2.Format(_T("D:\\%d_%d_%d__%d_%d_%d.txt"),tm.GetYear(),tm.GetMonth(),tm.GetDay(),tm.GetHour(),tm.GetMinute(),tm.GetSecond());  AfxMessageBo

2017-04-23 12:37:28 2403 1

转载 未能正确加载包"XXXXXXXXXX"

问题描述:未能正确加载包"XXXXXXXXXX"。请与包供应商联系以获得帮助。由于可能会发生环境损坏,建议重新启动应用程序。要禁止将来加载此包吗? 可以使用“devenv /resetskippkgs”重新启用包加载。 问题解决:开始-->所有程序-->Mircosoft visual studio 2010-->visual studio tools-->

2017-03-26 10:39:10 656

原创 ubuntu下安装opencv3.2出现-- ICV: Downloading ippicv_linux_20151201.tgz...

ubuntu下安装opencv3.2出现-- ICV: Downloading ippicv_linux_20151201.tgz...之后就会提示很多错误。需要自己下载ippicv_linux_20151201.tgz点击打开链接然后复制替换到opencv-3.2.0/3rdparty/ippicv/downloads/linux-808b791a6eac9ed78d32a766

2017-02-09 12:38:31 10872 2

原创 解决/usr/bin/ld: 找不到 -lpulse-mainloop-glib,/usr/bin/ld: 找不到 -lpulse问题

linux下QT编写Qcamer摄像头程序,出现/usr/bin/ld: 找不到 -lpulse-mainloop-glib,/usr/bin/ld: 找不到 -lpulse解决办法:首先find / -name libpulse.so*然后cp /usr/lib/x86_64-linux-gnu/libpulse.so. /usr/lib/libpulse.so对于l

2017-02-09 09:34:17 6783

转载 将文件夹的所有word名全部复制到文档里

使用dos命令 开始——所有程序——附件——命令提示符  输入dir word所在文件夹目录\*.doc >D:\WORD.txt 然后按回车键。这样就在D盘下生成WORD.txt文件,打开后。复制-粘贴到word中.

2017-01-09 10:20:19 1482

转载 C语言itoa()函数和atoi()函数

C语言提供了几个标准库函数,可以将任意类型(整型、长整型、浮点型等)的数字转换为字符串。1.int/float to string/array:C语言提供了几个标准库函数,可以将任意类型(整型、长整型、浮点型等)的数字转换为字符串,下面列举了各函数的方法及其说明。● itoa():将整型值转换为字符串。● ltoa():将长整型值转换为字符串。● ultoa():将

2016-12-10 21:36:00 383

原创 大电流降压模块设计TPS5430

TPS5430特性TPS5430具有良好的特性,其各项性能及主要参数如下:高电流输出:3A(峰值4A);    宽电压输入范围:515~36V;高转换效率:最佳状况可达95%;宽电压输出范围:最低可以调整降到1.221V;内部补偿最小化了外部器件数量;固定500kHz转换速率;有过流保护及热关断功能;具有开关使能脚,关状态仅有17uA静止电流

2016-11-30 20:37:05 2411

转载 使用CTime类,获取系统时间C/MFC

1.使用CTime类#include "afx.h"void main(){    CString str; //获取系统时间    CTime tm;    tm=CTime::GetCurrentTime();       str=tm.Format("现在时间是%Y年%m月%d日%X");    MessageBox(NULL,str,NULL,MB_

2016-11-23 10:10:48 3630

转载 Arduino单片机I2C库

I2C是非常普通的通信方式,Arduino单片机集成了I2C库,可以直接调用几个函数实现I2C通信。Arduino MEGA2560开发板I2C接口,在板子上对应的20--SDA 21--SCL。                                                                                    

2016-11-06 22:12:27 6296

转载 字符串转换成整型int

atoi() 函数用来将字符串转换成整数(int),其原型为:int atoi (const char * str);【函数说明】atoi() 函数会扫描参数 str 字符串,跳过前面的空白字符(例如空格,tab缩进等,可以通过 isspace() 函数来检测),直到遇上数字或正负符号才开始做转换,而再遇到非数字或字符串结束时('\0')才结束转换,并将结果返回。【返回值】返回

2016-11-04 20:48:08 582

转载 QT 十六进制字符串转化为十六进制编码

QT 十六进制字符串转化为十六进制编码/*************************************************Function: hexStringtoByteArray()Description: 十六进制字串转化为十六进制编码Calls: formatString()Called By:Input: hex->待转化的十六进制字串

2016-11-01 21:37:16 4193

转载 串口的一些高级用法arduino

1.配置串口通信数据位、校验位、停止位通常我们使用Serial.begin(speed)来完成串口的初始化,这种方式,只能配置串口的波特率。而使用Serial.begin(speed, config)可以配置数据位、校验位、停止位等。例如Serial.begin(9600,SERIAL_8E2)是将串口波特率设为9600,数据位8,偶校验,停止位2。config可用配置如下:

2016-11-01 21:09:41 1028

转载 Qt 的QString类的使用

Qt的QString类提供了很方便的对字符串操作的接口。使某个字符填满字符串,也就是说字符串里的所有字符都有等长度的ch来代替。QString::fill ( QChar ch, int size = -1 )例: QString str = "Berlin"; str.fill('z'); // str == "zzzzzz"

2016-10-31 09:25:34 647

原创 QString::arg()可用于固定长度输出

1.固定长度输出,适合用于串口通讯 QString tem = QString("%1,%2,%3,%4,%5").arg(thr1, 3, 10, QChar('0')).arg(thr2,3, 10, QChar('0')).arg(thr3, 3, 10, QChar('0')).arg(thr4, 3, 10, QChar('0')).arg(thr5, 3, 10, QChar(

2016-10-31 09:10:09 9944

VS2010之MFC串口通信的编写教程

串口通信

2017-03-04

在VS(VC)2010中使用MSComm控件实现串口通信的详细步骤

在VS(VC)2010中使用MSComm控件实现串口通信的详细步骤

2017-03-04

qwt-6.1.3(包含windowS和linux的,和帮助文件)

qwt-6.1.3(包含windowS和linux的,和帮助文件)

2017-02-10

ippicv_linux_20151201.tgz

2017-02-09

teraterm-4.93

Changes in Tera Term version 4.93 Added 48x48 icon to keycode.exe. Bug Fixes in Tera Term version 4.93 After Kanji(receive) is set to EUC and UTF-8 string is displayed, new Kanji(Chinese character) may be properly shown when Kanji(receive) is set to UTF-8. When Kanji(receive) is set to UTF-8, ISO-2022-JP Kanji cannot be properly displayed with Japanese language setting. When DeferredLogWriteMode=on is enabled and a log file is closed soon after opening the file, Tera Term sometimes halts with dead-lock. When Log dialog is closed, the memory leak of Tera Term core(ttermpro.exe) was happening. Windows 7 and Vista: When special operation is done on General setup dialog, an application fault may occur. When the real time mode is off while using broadcast command, invalid character would be added to the end of string. MACRO: When closesbox command is executed, the memory leak of Macro core(ttpmacro.exe) was happening. MACRO: The gethostname, gettitle, getmodemstatus, loginfo and logopen commands in rear cases would have issues. Related Product Upgrades Upgraded TTSSH to 2.79. Upgraded CygTerm+ to 1.07_29. Upgraded TTProxy to 1.0.0.24. Upgraded TeraTerm Menu to 1.14. Upgraded TTX KanjiMenu Plug-in to 0.1.7. Upgraded TTXRecurringCommand Plug-in to 1.05. Upgraded Oniguruma to 6.1.2. Changes in TTSSH version 2.79 When an Order(CipherOrder, KexOrder, HostKeyOrder, MacOrder, CompOrder) is read from the teraterm.ini file, memory corruption could occur. Tera Term(TTSSH) may hang up while a file is being received via SCP. Upgraded OpenSSL to 1.0.2j. Changes in Cygterm+ 1.07_29 Changed the icon image. Changes in TTProxy version 1.0.0.24 When an authentication is used in HTTP proxy, Tera Term(TTProxy) would crash. When an authentication is used on HTTP proxy, the authentication data would not be encoded with base64 protocol. The HTTP proxy connection was changed from HTTP/1.0 to HTTP/1.1. Changes in TeraTerm Menu version 1.14 Updated the TeraTerm icon (teraterm.ico). Changes

2017-01-05

Arduino的PID库

解压到arduino-1.6.5-windows\arduino-1.6.5\libraries里面

2016-11-04

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除