| 272 | } |
| 273 | |
| 274 | void dotstarEnd(void *refcon) |
| 275 | { |
| 276 | spiDisplay sd = refcon; |
| 277 | uint8_t bytes[16]; |
| 278 | int count = (sd->width + 15) / 16; |
| 279 | |
| 280 | c_memset(bytes, 0xff, sizeof(bytes)); |
| 281 | |
| 282 | while (count) { |
| 283 | int use = count; |
| 284 | if (count > sizeof(bytes)) |
| 285 | count = sizeof(bytes); |
| 286 | |
| 287 | modSPITx(&sd->spiConfig, (void *)bytes, use); |
| 288 | modSPIFlush(); |
| 289 | |
| 290 | count -= use; |
| 291 | } |
| 292 | } |
| 293 | |
| 294 | void dotstarAdaptInvalid(void *refcon, CommodettoRectangle invalid) |
| 295 | { |
no test coverage detected