mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-10-05 19:22:54 +02:00
pull BM1397 BI pin low
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "esp_log.h"
|
#include "esp_log.h"
|
||||||
#include "driver/i2c.h"
|
#include "driver/i2c.h"
|
||||||
|
#include "driver/gpio.h"
|
||||||
|
|
||||||
// Include FreeRTOS for delay
|
// Include FreeRTOS for delay
|
||||||
#include <freertos/FreeRTOS.h>
|
#include <freertos/FreeRTOS.h>
|
||||||
@@ -37,6 +38,11 @@ void app_main(void) {
|
|||||||
// ledc_init();
|
// ledc_init();
|
||||||
// led_set();
|
// 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_ERROR_CHECK(i2c_master_init());
|
||||||
ESP_LOGI(TAG, "I2C initialized successfully");
|
ESP_LOGI(TAG, "I2C initialized successfully");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user