MCPcopy Create free account
hub / github.com/bdring/FluidNC / __digitalWrite

Function __digitalWrite

X86TestSupport/TestSupport/Arduino.cpp:42–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42extern "C" void __digitalWrite(uint8_t pin, uint8_t val) {
43 auto& io = SoftwareGPIO::instance();
44 return io.writeOutput(pin, val ? true : false);
45}
46
47void delay(int ms) {
48 std::this_thread::sleep_for(std::chrono::milliseconds(ms));

Callers 3

TestFunction · 0.85
initializeMethod · 0.85
writeMethod · 0.85

Calls 1

writeOutputMethod · 0.80

Tested by 3

TestFunction · 0.68
initializeMethod · 0.68
writeMethod · 0.68