MCP4725使用STM32硬件I2C(附代码)
先上I2C初始化。头文件`#ifndef _I2C_H_#define _I2C_H_#include "stm32f10x.h"#include "rtthread.h"#include <stdbool.h>/**************************I2C参数定义,I2C1或I2C2********************************/#define I2Cx