diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-01-17 13:52:38 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-01-17 13:52:38 +1100 |
| commit | e53dfc4cc59fd0c3b01dc74762c1904f3ec9cc06 (patch) | |
| tree | 8f0ca7c002cbfeaf09ae53d2370d8569f88ee120 /src/main/main.cpp | |
| parent | 2056cad0ab7b805f0ed5629b100b50f8ea9e127e (diff) | |
| parent | 41993ea509ac06658e2e51a542112c78da8f0453 (diff) | |
| download | tangara-fw-e53dfc4cc59fd0c3b01dc74762c1904f3ec9cc06.tar.gz | |
Merge branch 'main' into codecs
Diffstat (limited to 'src/main/main.cpp')
| -rw-r--r-- | src/main/main.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/main.cpp b/src/main/main.cpp index a923b683..623d948d 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -97,6 +97,14 @@ extern "C" void app_main(void) { ESP_LOGI(TAG, "Init GPIOs"); drivers::GpioExpander* expander = new drivers::GpioExpander(); + 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::SD_CARD_POWER_ENABLE, 1); + gpio.set_pin(drivers::GpioExpander::SD_MUX_SWITCH, drivers::GpioExpander::SD_MUX_ESP); + }); + ESP_LOGI(TAG, "Init SD card"); auto storage_res = drivers::SdStorage::create(expander); if (storage_res.has_error()) { |
