MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / dotstarEnd

Function dotstarEnd

modules/drivers/dotstar/modDotstar.c:274–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274void 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
294void dotstarAdaptInvalid(void *refcon, CommodettoRectangle invalid)
295{

Callers 2

xs_DotStar_endFunction · 0.85
dotstarContinueFunction · 0.85

Calls 2

modSPITxFunction · 0.50
modSPIFlushFunction · 0.50

Tested by

no test coverage detected