mirror of
				https://github.com/alexandrebobkov/ESP-Nodes.git
				synced 2025-11-04 11:39:54 +00:00 
			
		
		
		
	esp32 temperature node
This commit is contained in:
		@@ -30,6 +30,7 @@ static i2c_bus_handle_t i2c_bus = NULL;
 | 
			
		||||
// BME280 device handle
 | 
			
		||||
static bme280_handle_t bme280 = NULL;
 | 
			
		||||
 | 
			
		||||
// I2C bus configuration struct
 | 
			
		||||
i2c_config_t conf = {
 | 
			
		||||
    .mode = I2C_MODE_MASTER,
 | 
			
		||||
    .sda_io_num = SDA_PIN,
 | 
			
		||||
@@ -40,7 +41,6 @@ i2c_config_t conf = {
 | 
			
		||||
    .clk_flags= 0,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
void app_main(void)
 | 
			
		||||
{
 | 
			
		||||
    i2c_bus = i2c_bus_create(i2c_master_port, &conf);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user