会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
mftang2018
博客园
首页
新随笔
联系
订阅
管理
2022年9月5日
6. 基于HAL实现 UART
摘要: 6.1 Cube配置 6.2 Cube生成代码 1 UART_HandleTypeDef huart1; 2 DMA_HandleTypeDef hdma_usart1_rx; 3 DMA_HandleTypeDef hdma_usart1_tx; 4 5 /* USART1 init functi
阅读全文
posted @ 2022-09-05 23:09 mftang2018
阅读(170)
评论(0)
推荐(0)
2022年8月23日
5. 基于LL库函数实现UART
摘要: 5. 基于LL库函数实现UART 5.1 Cube 配置 5.2 Cube 生成代码 void MX_USART1_UART_Init(void) { /* USER CODE BEGIN USART1_Init 0 */ /* USER CODE END USART1_Init 0 */ LL_U
阅读全文
posted @ 2022-08-23 21:43 mftang2018
阅读(931)
评论(0)
推荐(0)
4. 通用定时器( TIM9 到 TIM14)
摘要: 4.2 通用定时器( TIM9 到 TIM14) 4.2.1 实现PWM输出 系统时钟配置 定时器和PWM参数配置 4.2.2 代码实现 cube 软件自动生成的代码 /* TIM11 init function */ void MX_TIM11_Init(void) { /* USER CODE
阅读全文
posted @ 2022-08-23 21:29 mftang2018
阅读(169)
评论(0)
推荐(0)
2020年4月23日
学习日志-0001: sqlite3 学习笔记
摘要: #!/usr/bin/env python3 # -*- coding: utf-8 -*- # @descrip : operate SqLite intrface # @Time : 2020/04/22 21:57 # @Author : mingfei.tang import sqlite3
阅读全文
posted @ 2020-04-23 22:36 mftang2018
阅读(155)
评论(0)
推荐(0)
2019年6月2日
学习日志-0003: 一个简单的pytest demo
摘要: import pytest import allure import sys,os import logging import datetime def logInit(): now_time = datetime.datetime.now() filePath = os.getcwd() + "\
阅读全文
posted @ 2019-06-02 21:33 mftang2018
阅读(244)
评论(0)
推荐(0)
2019年5月18日
学习日志-0004:python 模拟 GPS, $GPRMC & $GPRMC
摘要: 数据详解:$GPRMC,<1>,<2>,<3>,<4>,<5>,<6>,<7>,<8>,<9>,<10>,<11>,<12>*hh <1> UTC 时间,hhmmss(时分秒)格式 <2> 定位状态,A=有效定位,V=无效定位 <3> 纬度ddmm.mmmm(度分)格式(前面的0也将被传输) <4>
阅读全文
posted @ 2019-05-18 11:53 mftang2018
阅读(1696)
评论(1)
推荐(0)
学习日志-0002: python 实现MQTT Client
摘要: 应用Python 实现MQTT Client,主要代码如下: #coding:utf-8 #!/usr/bin/python3 import json import os import binascii import asn1tools import sys import paho.mqtt.cli
阅读全文
posted @ 2019-05-18 08:25 mftang2018
阅读(1669)
评论(0)
推荐(0)
学习日志-0005:python 实现串口
摘要: 应用Pyserial 包实现串口通信类: 其主要接口如下: 1. Serial_Create 创建和使能串口 2. Serial_WriteAndReadBin 写读二进制数据流 3. Serial_WriteAndReadString 写读字符串 4. Serial_WriteString 写字符
阅读全文
posted @ 2019-05-18 08:15 mftang2018
阅读(865)
评论(1)
推荐(0)
公告