mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-10-24 13:50:21 +00:00
esp32 temperature node
This commit is contained in:
@@ -31,8 +31,6 @@
|
|||||||
|
|
||||||
static const char *TAG = "i2c-simple-example";
|
static const char *TAG = "i2c-simple-example";
|
||||||
|
|
||||||
static esp_err_t i2c_driver_initialize(void)
|
|
||||||
{
|
|
||||||
int i2c_master_port = 0;
|
int i2c_master_port = 0;
|
||||||
|
|
||||||
i2c_config_t conf = {
|
i2c_config_t conf = {
|
||||||
@@ -45,8 +43,6 @@ static esp_err_t i2c_driver_initialize(void)
|
|||||||
.clk_flags= 0,
|
.clk_flags= 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
return i2c_param_config(i2c_master_port, &conf);
|
|
||||||
}
|
|
||||||
|
|
||||||
void app_main(void)
|
void app_main(void)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user