Code: Select all
(2280) I2S_MIC: Free stack space: 1032
I (2281) NETWORK: Free heap size: 7360908
I (2285) I2S_MIC: Free PSRAM: 7320516
Code: Select all
[ 12409][E][NetworkClientSecure.cpp:244] write(): Closing connection on failed write
[ 12418][W][HTTPClient.cpp:602] sendRequest(): Failed to send chunk! Lets wait a bit
[ 12525][E][HTTPClient.cpp:606] sendRequest(): Failed to send chunk!
[ 12531][W][HTTPClient.cpp:1421] returnError(): error(-3): send payload failed
[ 12539][E][NetworkClient.cpp:323] setSocketOption(): fail on 0, errno: 9, "Bad file number"
Code: Select all
esp_lcd_panel_io_handle_t io_handle = NULL;
esp_lcd_panel_io_i2c_config_t io_config = {
.dev_addr = EXAMPLE_I2C_HW_ADDR,
.scl_speed_hz = EXAMPLE_LCD_PIXEL_CLOCK_HZ,
.control_phase_bytes = 1, // According to SSD1306 datasheet
.lcd_cmd_bits = EXAMPLE_LCD_CMD_BITS, // According to SSD1306 datasheet
.lcd_param_bits = EXAMPLE_LCD_CMD_BITS, // According to SSD1306 datasheet
.dc_bit_offset = 6, // According to SSD1306 datasheet
// .flags = {
// .disable_control_phase = true,
// },
};
ESP_LOGI(TAG, "Free heap size: %u", (unsigned int)esp_get_free_heap_size());
int ret = esp_lcd_new_panel_io_i2c(i2c_bus, &io_config, &io_handle);
ESP_LOGW(TAG, "%d", ret);
ESP_ERROR_CHECK(ret);
ESP_LOGI(TAG, "Free heap size: %u", (unsigned int)esp_get_free_heap_size());
It's powered by usb so I can't imagine it's a power issue, I don't have the tools to check this easily though. Any thoughts?