| 302 | #endif |
| 303 | |
| 304 | void ssd1351Command(spiDisplay sd, uint8_t command, const uint8_t *data, uint16_t count) |
| 305 | { |
| 306 | modSPIFlush(); |
| 307 | SCREEN_DC_COMMAND; |
| 308 | modSPITxRx(&sd->spiConfig, &command, sizeof(command)); // could use modSPITx, but modSPITxRx is synchronous and callers rely on that |
| 309 | |
| 310 | if (count) { |
| 311 | SCREEN_DC_DATA; |
| 312 | modSPITxRx(&sd->spiConfig, (uint8_t *)data, count); |
| 313 | } |
| 314 | } |
| 315 | |
| 316 | void ssd1351Init(spiDisplay sd) |
| 317 | { |
no test coverage detected