#include "SFBTypes.h"
#include "SFBConstants.h"
#include "SFBPins.h"
#include "lpc/timer.h"


Go to the source code of this file.
Functions | |
| 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) |
| 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) |
| void delay | ( | u32 | millissecondToWait | ) |
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.
| void digitalWrite | ( | int | sfbPin, | |
| int | value | |||
| ) |
Set a pin's value.
Also used to set the pullup (or pulldown) resistors on input pins.
| u32 isPinMode | ( | int | sfbPin, | |
| int | mode | |||
| ) |
SFB extension: Check if a pin is currently an input or an output (or under reflex control).
| 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). |
| bool ledIsOn | ( | int | sfbPin | ) | [inline] |
Check if one of the SFB built-in LEDs is on or off.
true if the sfbPin is on, false otherwise | void pinMode | ( | int | sfbPin, | |
| int | mode | |||
| ) |
Set a pin's function to input or output.
SFB extension: Set to 'reflex mode'.