|
deki-spi 0.20.2
Deki package reference
|
SPI buses and their devices: a boot step that starts a bus, shared by displays, SD cards and radios. The platform package supplies the backend
Repository: github.com/dekiengine/deki-spi · Latest release: 0.20.0 · Needs engine 0.20.0+
Install with DekiEditor --packages-add deki-spi <project>, or from the Package Manager. The engine's own components and C++ API are in the Deki docs.
Shown in the editor as SPI.
| Component | Category | Description |
|---|---|---|
| SPIBusComponent | System | Starts one SPI bus at boot. Every device on that bus (display, SD card, radio) shares it. |
Starts one SPI bus at boot. Every device on that bus (display, SD card, radio) shares it.
Inspector name: SPI Bus Component · Category: System · Type: DekiSpi::SPIBusComponent
| Property | Type | Default | Constraints | Description |
|---|---|---|---|---|
| spiHost | int32 | 1 | 0 to 3 | Which of the chip's SPI controllers to use, as the platform numbers them. On an ESP32-S3: 1 = SPI2, 2 = SPI3. |
| sclkPin | int32 | -1 | -1 to 48 | GPIO carrying the clock (SCK). Shared by every device on this bus. |
| mosiPin | int32 | -1 | -1 to 48 | GPIO carrying data out (MOSI); IO0 on a quad bus. |
| misoPin | int32 | -1 | -1 to 48 | GPIO carrying data in (MISO); IO1 on a quad bus. -1 when nothing on the bus is read. |
| io2Pin | int32 | -1 | -1 to 48 | IO2, for a quad bus (an AMOLED panel over QSPI). -1 on an ordinary SPI bus. |
| io3Pin | int32 | -1 | -1 to 48 | IO3, for a quad bus. -1 on an ordinary SPI bus. |
| maxTransferBytes | int32 | 32768 | 64 to 262144 | The longest transfer the bus takes in one go. A display sends pixels in transfers this long, so keep it at the chip's limit (32768 on an ESP32-S3) on a bus with a display. |
Earlier releases: CHANGELOG.md.
Generated from the package's reflection data (engine 0.20.2). Property names are the keys used in scene files. Renames keep an alias (compatibility).