#pragma once

#include "esp_err.h"

// I2C主机参数统一定义
#ifndef I2C_MASTER_NUM
#define I2C_MASTER_NUM      1
#endif
#ifndef I2C_MASTER_SCL_IO
#define I2C_MASTER_SCL_IO   15
#endif
#ifndef I2C_MASTER_SDA_IO
#define I2C_MASTER_SDA_IO   16
#endif
#ifndef I2C_MASTER_FREQ_HZ
#define I2C_MASTER_FREQ_HZ  100000
#endif

esp_err_t i2c_master_init(void); 