Arduino Pin Library  v4.2.0
An easy to use Arduino library for fast and simultaneous operations on Arduino I/O pins.
Port-Manipulation-Benchmark.ino
Go to the documentation of this file.
1 
11 void setup() {
12  DDRB |= B10000000; // Set Pin 13 on Arduino Mega to output mode
13 }
14 
18 void loop() {
19  while(true) {
20  PORTB |= B10000000; // Set Pin 13 on Arduino Mega to output HIGH
21  PORTB &= B01111111; // Set Pin 13 on Arduino Mega to output LOW
22  }
23 }
void loop()
Called continously after setup.
void setup()
Called at start.