#ifndef IIC_H
#define IIC_H
#include <stdio.h>
#include <inttypes.h>
#include "driver/gpio.h"
#include "esp_log.h"
#include "esp_system.h"

#include "driver/i2c_master.h"

#define I2C_BUS_PORT     I2C_NUM_0   // I2C 端口号
#define SDA_PIN          13          // SDA GPIO 引脚
#define SCL_PIN          14          // SCL GPIO 引脚

extern i2c_master_bus_handle_t bus_handle; // I2C 总线句柄

void iic_init();

#endif