summaryrefslogtreecommitdiff
path: root/src/main/main.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-03-30 09:31:08 +1100
committerjacqueline <me@jacqueline.id.au>2023-03-30 09:31:08 +1100
commita0ae39befe11c2a5a78ee5877cd5dd9cda90e27c (patch)
tree21d51e8929d3c6fa9ffa4bf78da0eacb5c0c27a2 /src/main/main.cpp
parent53ad4fc3f260ea7de56d1bce24e284b48c0e856b (diff)
downloadtangara-fw-a0ae39befe11c2a5a78ee5877cd5dd9cda90e27c.tar.gz
Update pinouts for R3
Diffstat (limited to 'src/main/main.cpp')
-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));
}
}