pull BM1397 BI pin low

This commit is contained in:
Skot Croshere
2023-01-31 12:14:01 -05:00
committed by johnny9
parent cb71de0ea1
commit c2819accfc

View File

@@ -17,6 +17,7 @@
#include <stdio.h>
#include "esp_log.h"
#include "driver/i2c.h"
#include "driver/gpio.h"
// Include FreeRTOS for delay
#include <freertos/FreeRTOS.h>
@@ -37,6 +38,11 @@ void app_main(void) {
// ledc_init();
// led_set();
//Playing with BI level
gpio_set_direction(GPIO_NUM_10, GPIO_MODE_OUTPUT);
gpio_set_level(GPIO_NUM_10, 0);
//Init I2C
ESP_ERROR_CHECK(i2c_master_init());
ESP_LOGI(TAG, "I2C initialized successfully");