| 116 | } |
| 117 | |
| 118 | void 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 | |
| 127 | void xs_digital_read(xsMachine *the) |
| 128 | { |
nothing calls this directly
no test coverage detected