summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/main.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/main.cpp b/src/main/main.cpp
index bd0a06af..57d88f96 100644
--- a/src/main/main.cpp
+++ b/src/main/main.cpp
@@ -102,12 +102,10 @@ extern "C" void app_main(void) {
ESP_LOGI(TAG, "Enable power rails for development");
expander->with([&](auto& gpio) {
- gpio.set_pin(drivers::GpioExpander::AUDIO_POWER_ENABLE, 1);
- gpio.set_pin(drivers::GpioExpander::DISPLAY_LED, 0);
- gpio.set_pin(drivers::GpioExpander::USB_INTERFACE_POWER_ENABLE, 0);
- gpio.set_pin(drivers::GpioExpander::SD_CARD_POWER_ENABLE, 1);
+ gpio.set_pin(drivers::GpioExpander::SD_MUX_EN_ACTIVE_LOW, 0);
gpio.set_pin(drivers::GpioExpander::SD_MUX_SWITCH,
drivers::GpioExpander::SD_MUX_ESP);
+ gpio.set_pin(drivers::GpioExpander::SD_CARD_POWER_ENABLE, 1);
});
ESP_LOGI(TAG, "Init battery measurement");
@@ -123,6 +121,7 @@ extern "C" void app_main(void) {
storage = std::move(storage_res.value());
}
+ /*
ESP_LOGI(TAG, "Init touch wheel");
auto touchwheel_res = drivers::TouchWheel::create(expander);
std::shared_ptr<drivers::TouchWheel> touchwheel;
@@ -131,6 +130,7 @@ extern "C" void app_main(void) {
} else {
touchwheel = std::move(touchwheel_res.value());
}
+ */
LvglArgs* lvglArgs = (LvglArgs*)calloc(1, sizeof(LvglArgs));
lvglArgs->gpio_expander = expander;
@@ -157,8 +157,8 @@ extern "C" void app_main(void) {
console.Launch();
while (1) {
- touchwheel->Update();
- ESP_LOGI(TAG, "Touch wheel pos: %d", touchwheel->GetTouchWheelData().wheel_position);
+ //touchwheel->Update();
+ //ESP_LOGI(TAG, "Touch wheel pos: %d", touchwheel->GetTouchWheelData().wheel_position);
vTaskDelay(pdMS_TO_TICKS(100));
}
}