mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-09-30 12:15:57 +02:00
pull BM1397 BI pin low
This commit is contained in:
@@ -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");
|
||||
|
||||
|
Reference in New Issue
Block a user