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

Function xs_digital_write

modules/pins/digital/digital.c:139–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139void xs_digital_write(xsMachine *the)
140{
141 modGPIOConfiguration gpio = xsmcGetHostChunk(xsThis);
142 int value = xsmcToInteger(xsArg(0));
143 modGPIOWrite(gpio, value);
144}
145
146void xs_digital_static_read(xsMachine *the)
147{

Callers

nothing calls this directly

Calls 1

modGPIOWriteFunction · 0.50

Tested by

no test coverage detected