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

Function xs_digital_mode

modules/pins/digital/digital.c:118–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void xs_digital_mode(xsMachine *the)
119{
120 modGPIOConfiguration gpio = xsmcGetHostChunk(xsThis);
121 int mode = xsmcToInteger(xsArg(0));
122
123 if (modGPIOSetMode(gpio, mode))
124 xsUnknownError("unsupported mode");
125}
126
127void xs_digital_read(xsMachine *the)
128{

Callers

nothing calls this directly

Calls 1

modGPIOSetModeFunction · 0.50

Tested by

no test coverage detected