Part of the Ports library.
The Port class represents the software side of a standard "port" header on JeeNode's and JeeLink's.
There are 4 ports on a JeeNode / JeeLink, numbered 1 through 4.
Example definition:
Port led (3);
Once a port object has been defined, it can be used to access I/O pins for various tasks.
Member functions
|
define DIO as input or output pin |
|
|
read value of the DIO pin |
|
|
set value of the DIO pin |
|
|
set up PWM on DIO pin (only specific ports) |
|
|
measure pulse length on DIO pin |
|
|
define AIO as input or output pin |
|
|
read analog value on AIO pin |
|
|
read digital level on the AIO pin |
|
|
set digital level on the AIO pin |
|
|
measure pulse length on the AIO pin |
|
|
send 8 bits out the DIO pin while pulsing the AIO pin |
|
|
pulse AIO pin and read a number of bits from the DIO pin |
|
|
pulse AIO pin and write a number of bits to the DIO pin |
|
|
define IRQ as input or output pin (static member) |
|
|
read digital level on the IRQ pin (static member) |
|
|
set digital level on the IRQ pin (static member) |