PortA/PortB Objects

Top  Previous  Next

Allows reading and writing the I/O pins.


The WebCell has 16 general-purpose I/O pins, eight on PortA (A0 - A7) and eight on PortB (B0 - B7).  Individual pins can be set to input or output using the direction property. Logic levels on the pins can be read and written with the pins property. Input pull-ups can be enabled with the pullup property, allowing an input to be used with a switch to ground without an external pull-up.

Static Properties


Gets or sets the direction (input or output) of each port pin.


Gets or sets the logic levels on the port pins.


Gets or sets which input port pins have pull-up resistors.