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

Function digitalWrite

src/platforms/arm/sam/pin_sam.hpp:88–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88inline void digitalWrite(int pin, PinValue val) FL_NOEXCEPT {
89 u32 mask;
90 Pio* pio = detail::getPioController(pin, mask);
91 if (!pio) return;
92
93 if (val == PinValue::High) {
94 pio->PIO_SODR = mask; // Set output data register
95 } else {
96 pio->PIO_CODR = mask; // Clear output data register
97 }
98}
99
100inline PinValue digitalRead(int pin) FL_NOEXCEPT {
101 u32 mask;

Callers 1

writeBitMethod · 0.70

Calls 1

getPioControllerFunction · 0.85

Tested by

no test coverage detected