diff options
| author | gamerdonkey | 2024-10-12 23:56:54 -0500 |
|---|---|---|
| committer | gamerdonkey | 2024-10-12 23:56:54 -0500 |
| commit | c6abf41ea1fc89a08677130275a9c1186df4f450 (patch) | |
| tree | b7de25c1cbf537086efe274050e2ab0ea090bf30 | |
| parent | ae197731402d2b0fa853a77def3f4dc740d278a5 (diff) | |
| download | esp32-inova-led-controller-c6abf41ea1fc89a08677130275a9c1186df4f450.tar.gz esp32-inova-led-controller-c6abf41ea1fc89a08677130275a9c1186df4f450.tar.bz2 esp32-inova-led-controller-c6abf41ea1fc89a08677130275a9c1186df4f450.zip | |
SPI transfer length fix (bits not bytes)
| -rw-r--r-- | main/InovaLedDisplay.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/InovaLedDisplay.cpp b/main/InovaLedDisplay.cpp index cc62708..1cf085f 100644 --- a/main/InovaLedDisplay.cpp +++ b/main/InovaLedDisplay.cpp @@ -103,7 +103,7 @@ void InovaLedDisplay::runDisplay(void) { vTaskDelayUntil(&xLastWakeTime, xFrequency); memset(&t, 0, sizeof(t)); - t.length = _width; + t.length = _width * 8; // in bits t.tx_buffer = &displayBuffer[1 - backBufferIndex][current_row]; t.flags = SPI_TRANS_MODE_OCT; // output on eight data lines (six utilized). Even bits go to GREEN, odd to RED ret = spi_device_polling_transmit(spi, &t); |
