Move display CS/DC off strapping pins (CS=21, DC=19) so flashing works with display connected

This commit is contained in:
2026-09-10 16:43:22 +02:00
parent 347728de6d
commit 71b0085ced
3 changed files with 26 additions and 20 deletions

View File

@@ -20,9 +20,9 @@ void app_main(void)
ESP_ERROR_CHECK(spi_bus_manager_init());
ESP_ERROR_CHECK(storage_manager_init());
/* RFID comes BEFORE the display: the panel's init traffic plus the strap
* load on GPIO15/GPIO2 can glitch the shared SPI bus and make the MFRC522
* self-test flake. Starting the reader on a quiet bus yields a clean test. */
/* RFID comes BEFORE the display: the reader lives on its own SPI3 bus now
* (display owns SPI2), but initializing it before the panel's init traffic
* still gives the self-test the quietest possible bus timing. */
esp_err_t ret = rfid_manager_init();
if (ret != ESP_OK || rfid_manager_start() != ESP_OK) {
ESP_LOGW(TAG, "RFID unavailable (%s) - continuing without card scanning", esp_err_to_name(ret));