FastLED 3.9.15
Loading...
Searching...
No Matches

◆ toggle()

template<uint8_t PIN>
static void FastPin< PIN >::toggle ( )
inlinestatic

Toggle the pin.

If the pin was high, set it low. If was low, set it high.

Definition at line 247 of file fastpin.h.

247{ *sInPort = sPinMask; }
static volatile RoReg * sInPort
Input register for the pin.
Definition fastpin.h:220
static RwReg sPinMask
Bitmask for the pin within its register.
Definition fastpin.h:218

Referenced by port_ptr_t< DATA_PIN >::strobe(), and AVRSoftwareSPIOutput< DATA_PIN, CLOCK_PIN, SPI_SPEED >::writeBit().

+ Here is the caller graph for this function: