stm32 模拟iic mcp4728修改地址 设置电压
注:SCL配置为推挽输出模式SDA配置为开漏输出模式CS配置为推挽输出模式LDAC配置为推挽输出模式RDY配置为输入模式#include "main.h"#include "stdint.h"#include "delay.h"#define MCP4728_ADDR1 0xC0#define MCP4728_ADDR2 0xC4#define MCP4728_ADDR3 0xC8#define MCP4728_Channel_A 0x00#define MCP4728_Cha
原创
2021-08-26 09:40:58 ·
2645 阅读 ·
3 评论