摘要: 以下模块仅做学习参考使用,实际使用需要根据HAL库具体模块功能配置,功能以参考手册为准; GPIO 中断 串口 看门狗 定时器 阅读全文
posted @ 2023-10-16 23:58 水水君 阅读(19) 评论(0) 推荐(0) 编辑
摘要: A: ADC Analog-to-Digital Converter—模/数转换器,模数转换器AFIO alternate function IO—复用 IO 端口AHB 先进高性能总线AHB-AP—AHB访问端口Arg argument—自变量APB 先进外设总线API Application P 阅读全文
posted @ 2023-09-21 20:05 水水君 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 条件编译 指令 功能 #if 编译预处理条件指令 #ifdef 判断某个宏是否已被定义 #ifndef 判断某个宏是否未被定义 #elif else if #else #endif if指令结束标志 extern声明 放在函数/变量前,表示此函数/变量在其他文件定义,方便本文件引用 阅读全文
posted @ 2023-09-12 19:06 水水君 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 电源引脚: V开头 晶振引脚: 低速晶振引脚:PC14-OSC32 高速晶振引脚:OSC 复位引脚: NRST 下载接口: JTAG:JTDI,JTCK-SWCLK,JTMS-SWDIO,JNTRST,JTDO SWD:JTCK-SWCLK,JTMS-SWDIO 串口(UART):USART1_TX 阅读全文
posted @ 2023-09-09 16:15 水水君 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 串口通讯: 特点: 规定了UART帧格式:起始位0 + 5-8位数据位 + 校验位(可有可无) + 停止位 全双工、串行 RS232: 特点: 逻辑 "1" 电平 -5v~-15v;逻辑 "0" 电平 +5v~+15v; 缺点: 接口电平高,易损坏接口电路芯片 与TTL电平不兼容,需要用电平转换芯片 阅读全文
posted @ 2023-09-05 21:23 水水君 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 常规class class Rectengle { int width, height; static int a; // 类的公共变量,允许类名直接访问 public: Rectengle(){}; Rectengle(int x, int y) : width(x), height(y) {}; 阅读全文
posted @ 2023-09-05 00:55 水水君 阅读(15) 评论(0) 推荐(0) 编辑
摘要: struct /** * 这里的student相当于一个对象 * name|age是student的属性 */ struct student { string name; int age; }; // 初始化 student stu1; student.name = "XiaoMing"; stud 阅读全文
posted @ 2023-08-31 23:11 水水君 阅读(1) 评论(0) 推荐(0) 编辑
摘要: pom.xml 引入依赖 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-openfeign</artifactId> </dependency> <dependen 阅读全文
posted @ 2022-09-26 11:10 水水君 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 1、登陆https://hub.docker.com/拉取nacos镜像 2、运行docker启动命令 docker run -d \ --name nacos-server \ -e MODE=standalone -e prefer_host_mode={host} \-p 8848:8848 阅读全文
posted @ 2022-09-25 12:08 水水君 阅读(1290) 评论(0) 推荐(0) 编辑
摘要: 一、Set:特点不包含重复元素 常用功能: HashSet result = new HashSet(); HashSet set1 = new HashSet(); HashSet set2 = new HashSet(); result.addAll(set1); result.retainAl 阅读全文
posted @ 2022-09-08 21:49 水水君 阅读(135) 评论(0) 推荐(0) 编辑