MCPcopy Create free account
hub / github.com/FastLED/FastLED / digitalWrite

Function digitalWrite

src/platforms/stub/pin_stub.hpp:30–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28// ============================================================================
29
30inline void digitalWrite(int pin, PinValue val) FL_NOEXCEPT {
31 fl::stub::setPinState(pin, val == PinValue::High);
32}
33
34inline PinValue digitalRead(int pin) FL_NOEXCEPT {
35 return fl::stub::getPinState(pin) ? PinValue::High : PinValue::Low;

Callers

nothing calls this directly

Calls 1

setPinStateFunction · 0.85

Tested by

no test coverage detected