PinWrite/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.
pinWrite()
Classification Digital Pin Function
Suggested location WDigital.h
C++ required No
Timing constraints None
Version introduced 1.0 (0100)
Framework dependencies None
Prototype(s)
void pinWrite(uint8_t, uint8_t)
Required? Yes
Issues None


Contents

Description

The pinWrite() function/method sets the digital value the provided pin number to either HIGH or LOW.

Black Box Input

The pin number and value is provided.

Black Box Output

If possible, the pin is set as either HIGH for a digital "high" value, and LOW for a digital "low" value.

Overloading

None. Single signature only.

Notes

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

Proposed Changes

For Wiring 1.1

According to Issue 9, pinWrite() will be defined as:

void pinWrite(pin_t pin, uint8_t value);

See Issue 9 for more details.

Personal tools