SD card support (#23)
### General - Added support for SD cards in `HadwareConfig` - Properly disabled PC build for now (I was still getting error emails) - Updated `README.md` with a device compatibility table ### T-Deck: - Implemented SD card support - Logging message cleanup - Updated `config,h` with various new settings - Reduced stack depth from `8096` to `5000`
This commit is contained in:
committed by
GitHub
parent
618f557a16
commit
d27579848a
@@ -1,27 +1,30 @@
|
||||
#include "config.h"
|
||||
#include "esp_err.h"
|
||||
#include "esp_lcd_touch_gt911.h"
|
||||
#include "esp_lcd_panel_io_interface.h"
|
||||
#include "esp_lcd_touch_gt911.h"
|
||||
#include "log.h"
|
||||
#include <kernel.h>
|
||||
|
||||
#define TAG "tdeck_touch"
|
||||
|
||||
bool tdeck_init_touch(esp_lcd_panel_io_handle_t* io_handle, esp_lcd_touch_handle_t* touch_handle) {
|
||||
TT_LOG_I(TAG, "creating touch");
|
||||
|
||||
const esp_lcd_panel_io_i2c_config_t touch_io_config = ESP_LCD_TOUCH_IO_I2C_GT911_CONFIG();
|
||||
if (esp_lcd_new_panel_io_i2c((esp_lcd_i2c_bus_handle_t)TDECK_I2C_BUS_HANDLE, &touch_io_config, io_handle) != ESP_OK) {
|
||||
if (
|
||||
esp_lcd_new_panel_io_i2c(
|
||||
(esp_lcd_i2c_bus_handle_t)TDECK_TOUCH_I2C_BUS_HANDLE,
|
||||
&touch_io_config,
|
||||
io_handle
|
||||
) != ESP_OK
|
||||
) {
|
||||
TT_LOG_E(TAG, "touch io i2c creation failed");
|
||||
return false;
|
||||
}
|
||||
|
||||
TT_LOG_I(TAG, "create_touch");
|
||||
esp_lcd_touch_config_t config = {
|
||||
.x_max = 240,
|
||||
.y_max = 320,
|
||||
.x_max = TDECK_TOUCH_X_MAX,
|
||||
.y_max = TDECK_TOUCH_Y_MAX,
|
||||
.rst_gpio_num = GPIO_NUM_NC,
|
||||
.int_gpio_num = GPIO_NUM_16,
|
||||
.int_gpio_num = TDECK_TOUCH_PIN_INT,
|
||||
.levels = {
|
||||
.reset = 0,
|
||||
.interrupt = 0,
|
||||
|
||||
Reference in New Issue
Block a user