#include #include "MMC56x3.h" #include "MMC56x3_hal.h" #include "esp_err.h" #define PRODUCT_ID_1 0x39 #define TEMPERATURE 0x09 esp_err_t MMC56x3_get_product_ID(uint8_t* id){ ESP_ERROR_CHECK(i2c_read_reg(PRODUCT_ID_1, id, 1)); return ESP_OK; } esp_err_t MMC56x3_get_temperature(uint8_t* temp){ ESP_ERROR_CHECK(i2c_read_reg(TEMPERATURE, temp, 1)); return ESP_OK; }