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

Function xs_SSD1306_begin

modules/drivers/ssd1306/modSsd1306.c:343–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343void xs_SSD1306_begin(xsMachine *the)
344{
345 ssd1606 ssd = xsmcGetHostData(xsThis);
346 CommodettoCoordinate xMin = xsmcToInteger(xsArg(0));
347 CommodettoCoordinate yMin = xsmcToInteger(xsArg(1));
348 CommodettoDimension width = xsmcToInteger(xsArg(2));
349 CommodettoDimension height = xsmcToInteger(xsArg(3));
350
351 if ((0 != xMin) || (0 != yMin) || (ssd->width != width) || (ssd->height != height))
352 xsUnknownError("partial updates unsupported");
353
354 ssd1306Begin(ssd, xMin, yMin, width, height);
355}
356
357void xs_SSD1306_send(xsMachine *the)
358{

Callers

nothing calls this directly

Calls 1

ssd1306BeginFunction · 0.85

Tested by

no test coverage detected