Arduino Pin Library Version 2.2.1

I have updated my Arduino Pin library; it is now capable of simultaneous operations on multiple Pins. The library is used for fast digital I/O using port manipulation supporting the Arduino Mega, Arduino Uno, and Arduino Leonardo. The source code can be found at https://github.com/fenichelar/Pin. Complete documentation can be found at https://pin.fenichelar.com. The library is also avaliable on the Arduino Library Manager. Here are some examples of the new features:

#Simultaneous Operations on Multiple Pins All Pins in array must use the same DDR and PORT registers. Look at the corresponding file in the boards directory to determine what register each pin uses.

Import Pin Library with support for simultaneous operations

#include <Pin.h>
#include <PinGroup.h>

Create array of Pins for simultaneous operations

Pin myPinGroup[] = {2,3,5};

Simultaneously set mode for array of Pins to input

setInput(myPinGroup);

Simultaneously set mode for array of Pins to output

setOutput(myPinGroup);

Simultaneously check if array of Pins are all HIGH

getValue(myPinGroup) == HIGH

Simultaneously check if array of Pins are all LOW

getValue(myPinGroup) == LOW
Written on July 22, 2015