Go to the source code of this file.
|void||digitalWrite (int sfbPin, int value)|
|Set a pin's value. |
|int||digitalRead (int sfbPin)|
|Read a pin's value. |
|void||ledOn (int sfbPin)|
|Turn on one of the SFB built-in LEDs. |
|void||ledOff (int sfbPin)|
|Turn off one of the SFB built-in LEDs. |
|void||ledSet (int sfbPin, bool on)|
|Turn on or off one of the SFB built-in LEDs. |
|bool||ledIsOn (int sfbPin)|
|Check if one of the SFB built-in LEDs is on or off. |
|void||ledToggle (int sfbPin)|
|Toggle one of the SFB built-in LEDs. |
|void||pinMode (int sfbPin, int mode)|
|Set a pin's function to input or output. |
|u32||isPinMode (int sfbPin, int mode)|
|SFB extension: Check if a pin is currently an input or an output (or under reflex control). |
|void||delayMicroseconds (u32 usecondsToWait)|
|Delay for some number of microseconds. |
|void||delayMicrosecondsApproximate (u32 usecondsToWait)|
|Delay usecondsToWait by watching for ticks of the main microsecond timer. |
|void||delay (u32 millissecondToWait)|
|Delay for some number of milliseconds. |
|void||shiftOut (int dataPin, int clockPin, int bitOrder, u8 val)|
|u32||pulseIn (int pin, int state, u32 timeoutUsec=1000000)|
Delay for some number of milliseconds.
If this function is called from loop(), dispatching (i.e., running packet and alarm handlers) will occur, but if called from a packet or alarm handler, no further (recursive) dispatching will take place, and instead just the delay will happen.
Delay for some number of microseconds.
Note this function is not precisely calibrated (and may be equivalent to delayMicrosecondsApproximate(u32), which see). If you need exact microsecond delays you'll need to work up your own custom timing code!
Delay usecondsToWait by watching for ticks of the main microsecond timer.
This function is called 'approximate' for two reasons: (1) Because it doesn't attempt to determine where within the current microsecond we are when we start timing, so it might return up to (but not including) one microsecond early, and (2) Because it does not disable interrupts, so it might return late due to interrupt handling.
Set a pin's value.
Following the Arduino approach, this method can also be used to set the pullup resistors on input pins: If the pin is configured as an INPUT, writing a HIGH value with digitalWrite() will enable an internal pullup resistor, and writing a LOW value will disable the internal pullup resistor. (As an SFB extension, it is also possible to set an internal pulldown resistor, see setPinResistor.)
SFB extension: Check if a pin is currently an input or an output (or under reflex control).
|sfbPin||The pin number to check|
|mode||Either INPUT or OUTPUT for basic usage. Can also be REFLEX_MODE to check if a pin is in reflex mode (rather than checking if it's an input or an output).|
Check if one of the SFB built-in LEDs is on or off.
trueif the sfbPin is on,
Set a pin's function to input or output.
SFB extension: Set to 'reflex mode'.