+ Fixup: Boards/LilygoTLoraPager - Remove dead code, rename init function

This commit is contained in:
Dominic Höglinger 2025-07-03 18:40:49 +02:00
parent 201f3cdbf5
commit 2294b45e71
2 changed files with 3 additions and 28 deletions

View File

@ -18,33 +18,8 @@
std::shared_ptr<Bq27220> bq27220; std::shared_ptr<Bq27220> bq27220;
std::shared_ptr<Tca8418> tca8418; std::shared_ptr<Tca8418> tca8418;
static bool powerOn() { bool tpagerInit() {
/*
gpio_config_t device_power_signal_config = {
.pin_bit_mask = BIT64(TDECK_POWERON_GPIO),
.mode = GPIO_MODE_OUTPUT,
.pull_up_en = GPIO_PULLUP_DISABLE,
.pull_down_en = GPIO_PULLDOWN_DISABLE,
.intr_type = GPIO_INTR_DISABLE,
};
if (gpio_config(&device_power_signal_config) != ESP_OK) {
return false;
}
if (gpio_set_level(TDECK_POWERON_GPIO, 1) != ESP_OK) {
return false;
}
*/
return true;
}
bool tdeckInit() {
ESP_LOGI(TAG, LOG_MESSAGE_POWER_ON_START); ESP_LOGI(TAG, LOG_MESSAGE_POWER_ON_START);
if (!powerOn()) {
TT_LOG_E(TAG, LOG_MESSAGE_POWER_ON_FAILED);
return false;
}
/* 32 Khz and higher gives an issue where the screen starts dimming again above 80% brightness /* 32 Khz and higher gives an issue where the screen starts dimming again above 80% brightness
* when moving the brightness slider rapidly from a lower setting to 100%. * when moving the brightness slider rapidly from a lower setting to 100%.

View File

@ -9,12 +9,12 @@
#define TDECK_SPI_TRANSFER_SIZE_LIMIT (TDECK_LCD_HORIZONTAL_RESOLUTION * TDECK_LCD_SPI_TRANSFER_HEIGHT * (LV_COLOR_DEPTH / 8)) #define TDECK_SPI_TRANSFER_SIZE_LIMIT (TDECK_LCD_HORIZONTAL_RESOLUTION * TDECK_LCD_SPI_TRANSFER_HEIGHT * (LV_COLOR_DEPTH / 8))
bool tdeckInit(); bool tloraInit();
using namespace tt::hal; using namespace tt::hal;
extern const Configuration lilygo_tlora_pager = { extern const Configuration lilygo_tlora_pager = {
.initBoot = tdeckInit, .initBoot = tpagerInit,
.createDisplay = createDisplay, .createDisplay = createDisplay,
.createKeyboard = createKeyboard, .createKeyboard = createKeyboard,
.sdcard = createTpagerSdCard(), .sdcard = createTpagerSdCard(),