* initial changes for waveshare s3 touch support * fix lvgl locking * fix for lvgl locking * cleaned up dependencies * boards now depend on tactility instead of tactility-esp * revert deletion * remove component * working touch&display driver * added waveshare to github actions * cleanup * fix for driver * fix for sim build * build fixes * updated docs * updated docs * attempt new sdl2 github action * revert * fixes for clion/cmdline build environment wasn't parsed properly * temporarily disable pc sim build
30 lines
819 B
C
30 lines
819 B
C
#include "esp_log.h"
|
|
#include "driver/gpio.h"
|
|
#include "kernel.h"
|
|
#include "esp_lvgl_port.h"
|
|
|
|
#define TAG "lilygo_tdeck_bootstrap"
|
|
#define TDECK_PERI_POWERON GPIO_NUM_10
|
|
|
|
lv_disp_t* lilygo_tdeck_init_display();
|
|
|
|
static void tdeck_power_on() {
|
|
ESP_LOGI(TAG, "power on");
|
|
gpio_config_t device_power_signal_config = {
|
|
.pin_bit_mask = BIT64(TDECK_PERI_POWERON),
|
|
.mode = GPIO_MODE_OUTPUT,
|
|
.pull_up_en = GPIO_PULLUP_DISABLE,
|
|
.pull_down_en = GPIO_PULLDOWN_DISABLE,
|
|
.intr_type = GPIO_INTR_DISABLE,
|
|
};
|
|
gpio_config(&device_power_signal_config);
|
|
gpio_set_level(TDECK_PERI_POWERON, 1);
|
|
}
|
|
|
|
void lilygo_tdeck_bootstrap() {
|
|
tdeck_power_on();
|
|
// Give keyboard's ESP time to boot
|
|
// It uses I2C and seems to interfere with the touch driver
|
|
tt_delay_ms(500);
|
|
}
|