10 2020 档案

摘要:#define OLED0561_ADD 0x78 // OLED的I2C地址(禁止修改)#define COM 0x00 // OLED 指令(禁止修改)#define DAT 0x40 // OLED 数据(禁止修改) void WriteCmd(unsigned char I2C_Comman 阅读全文
posted @ 2020-10-24 19:13 流水江湖 阅读(1481) 评论(0) 推荐(0) 编辑
摘要:HAL库调用RTC芯片SD3178代码如下: 1、用到函数 HAL_I2C_Mem_Write(); //带设备地址,寄存器地址 extern I2C_HandleTypeDef hi2c2; /****************** 本地变量 **********************/ u8 d 阅读全文
posted @ 2020-10-23 13:37 流水江湖 阅读(699) 评论(0) 推荐(0) 编辑
摘要:刚接触C++,在尝试从 dll 中导出函数时,发现导出的函数名都“乱码”了。 导出过程如下: 新建一个Win32项目: 新建的解决方案里有几个导出的示例: // 下列 ifdef 块是创建使从 DLL 导出更简单的 // 宏的标准方法。此 DLL 中的所有文件都是用命令行上定义的 DLLEXPORT 阅读全文
posted @ 2020-10-22 22:37 流水江湖 阅读(870) 评论(0) 推荐(0) 编辑
摘要:#include "lwip/debug.h" #include "lwip/stats.h" #include "lwip/tcp.h" #include "usart.h" #if LWIP_TCP static struct tcp_pcb *tcp_echoserver_pcb; /* EC 阅读全文
posted @ 2020-10-17 15:07 流水江湖 阅读(448) 评论(0) 推荐(0) 编辑
摘要:在math.h中 加入#include "stm32f4xx_hal.h"#include "stdio.h"用于支持printf 及 一些 HAL 定义的 数据结构在uart.c 文件中加入如下代码,用于把printf输出到串口1 /* USER CODE BEGIN 0 */ int fputc 阅读全文
posted @ 2020-10-17 14:38 流水江湖 阅读(440) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/u012523921/article/details/105411008 https://jiejie.blog.csdn.net/article/details/80563422 1、查询(基本不用) 2、中断 3、中断+DMA 操作分3个步骤 1、设置 阅读全文
posted @ 2020-10-02 07:18 流水江湖 阅读(3450) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示