Arduino Pin Library
v4.2.0
An easy to use Arduino library for fast and simultaneous operations on Arduino I/O pins.
Home
API
Examples
Files
Pin-Toggle.ino
Author
Alec Fenichel
#include <
Pin.h
>
// Include Pin Library
Pin
myPin =
Pin
(13);
// Create Pin object for digital pin labelled 13 on any of the supported boards
void
setup() {
myPin.
setOutput
();
// Set Pin to output mode
myPin.
setHigh
();
// Set Pin to output high
}
void
loop() {
myPin.
toggleState
();
// Set Pin to output the opposite of the previous output (HIGH -> LOW, LOW -> HIGH)
delay(200);
// Wait 200 milliseconds
}
Written by Alec Fenichel
Source Code:
https://github.com/fenichelar/Pin
License:
https://github.com/fenichelar/Pin/blob/master/LICENSE.md
Latest Release:
https://github.com/fenichelar/Pin/releases/latest