Arduino Pin Library  v4.2.0
An easy to use Arduino library for fast and simultaneous operations on Arduino I/O pins.
Pin-Library-Benchmark.ino
Go to the documentation of this file.
1 
8 #include <Pin.h> // Include Pin Library
9 
10 Pin myPin = Pin(13); // Create Pin object for digital pin labelled 13 on any of the supported boards
11 
15 void setup() {
16  myPin.setOutput(); // Set Pin to output
17 }
18 
22 void loop() {
23  while(true) {
24  myPin.setHigh(); // Set Pin to output HIGH
25  myPin.setLow(); // Set Pin to output LOW
26  }
27 }
void setHigh()
Set the pin output to HIGH.
Definition: Pin.h:365
Class for fast operations on Arduino I/O pins.
Definition: Pin.h:39
void setOutput()
Set the pin mode to output.
Definition: Pin.h:355
Fast operations on Arduino I/O pins.
void setLow()
Set the pin output to LOW.
Definition: Pin.h:375
void setup()
Called at start.
void loop()
Called continously after setup.