Update pinouts for R3
This commit is contained in:
+6
-6
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user