摘要: osThreadState osState2;//自定义一个线程的状态 osThreadState 系统枚举定义如下: typedef enum { osThreadRunning = 0x0, /* A thread is querying the state of itself, so must be running. */ osThreadReady = 0x1 , /* The threa 阅读全文
posted @ 2019-09-16 16:10 阿坦 阅读(1808) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-09-02 16:05 阿坦 阅读(5954) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-08-27 14:40 阿坦 阅读(8011) 评论(0) 推荐(0)
摘要: 源码下载地址:https://github.com/lizhiqiang0204/ImageGray.git Halcon代码如下: 将生成的C#文件添加到WPF工程下 采集图像灰度值的方法就是Halcon生成的C#类里面的方法 public void GatherGray(HTuple Windo 阅读全文
posted @ 2019-08-23 14:14 阿坦 阅读(1623) 评论(0) 推荐(0)
摘要: 用STM32CubuMX默认加入的FreeRTOS默认配置eTaskGetState是禁止的 把该功能设为Enabled编译就不会出错了 IAR的编译器要勾选Allow VLA 阅读全文
posted @ 2019-08-20 09:53 阿坦 阅读(549) 评论(0) 推荐(0)
摘要: NTC电阻Rt与温度T公式如下: Rt=10000*exp(3950*(1/(273.15+T)-1/(273.15+25)))。 例:0摄氏度时,电阻为33620.6037214357 欧姆 Rt=10000*exp(3950*(1/(273.15+0)-1/(273.15+25)))=33620 阅读全文
posted @ 2019-07-12 10:22 阿坦 阅读(5325) 评论(0) 推荐(0)
摘要: 源码下载地址:https://github.com/lizhiqiang0204/WPF-Socket 效果如下: 阅读全文
posted @ 2019-07-10 10:49 阿坦 阅读(936) 评论(0) 推荐(0)
摘要: 右击工程项目点发布->完成 此时在工程目录下生成了安装文件setup.exe 同时又在工程下生成了临时证书WpfApp1_TemporaryKey.pfx 如果此时强行安装会弹出如下警告 接下来右击项目->属性,找到签名->从文件选择,选择刚才生成的临时证书WpfApp1_TemporaryKey. 阅读全文
posted @ 2019-07-09 17:13 阿坦 阅读(760) 评论(0) 推荐(0)
摘要: 此项目源码下载地址:https://github.com/lizhiqiang0204/Tile 方格效果: 前端代码如下: <!--画横矩形--> <GeometryDrawing Geometry="M0,0 L1,0 1,0.1, 0,0.1Z" Brush="#CCCCFF" /> <!-- 阅读全文
posted @ 2019-06-26 16:57 阿坦 阅读(838) 评论(1) 推荐(0)
摘要: 此项目源码下载地址:https://github.com/lizhiqiang0204/WpfLineChartV1.1 效果图如下: 此项目把折线图制作成了一个控件,在主界面设置好参数直接调用即可,下面是主程序片段 类库添加点的函数 本人也是新手,代码规范写的不是很好,见谅! 阅读全文
posted @ 2019-06-25 16:04 阿坦 阅读(5335) 评论(1) 推荐(1)