finally can compile the bme driver

This commit is contained in:
2020-09-13 18:00:01 -05:00
parent e968df1ca4
commit 6268ccd49f
9 changed files with 2020 additions and 8 deletions

View File

@@ -11,13 +11,8 @@
#include <esp_https_server.h>
#include "bme280.h"
// pin numbers specific to this TTGO board
#define SDA_PIN GPIO_NUM_21
#define SCL_PIN GPIO_NUM_22
static const char *TAG = "BME280";
/* An HTTP GET handler */
static esp_err_t root_get_handler(httpd_req_t *req);
static httpd_handle_t start_webserver(void);
@@ -34,6 +29,11 @@ static const httpd_uri_t root = {
};
void my_i2c_setup(void);
void my_bme280_init(void);
extern struct bme280_dev bme280; // from bme280_sup.c
void app_main(void)
{
static httpd_handle_t server = NULL;
@@ -60,6 +60,10 @@ void app_main(void)
* examples/protocols/README.md for more information about this function.
*/
ESP_ERROR_CHECK(example_connect());
my_i2c_setup();
my_bme280_init();
}
static esp_err_t root_get_handler(httpd_req_t *req)