PortMode/developers

From Wiring

Jump to: navigation, search
This page is intended as a reference for core developers only, and the content is only changed after a consensus has been reached through discussion of any such changes. Please use the Discussion page to talk about any changes or issues you have with the current implementation.
portMode()
Classification Digital Port Function
Suggested location WDigital.h
C++ required No
Timing constraints None
Version introduced 1.0 (0100)
Framework dependencies None
Prototype(s)
void portMode(uint8_t, uint8_t)
Required? Yes
Issues None


Contents

Description

The portMode() function/method sets the mode for the provided port number to either and INPUT or OUTPUT.

Black Box Input

The port number is provided, along with the port mode of either INPUT or OUTPUT.

Black Box Output

If possible, the mode of the given port is set to either INPUT or OUTPUT. Nothing is returned.

Overloading

None. Single function only.

Notes

The Atmel AVR8Bit core uses look-up tables to translate the input pin to a port number and a port bit value.

Personal tools