0% found this document useful (0 votes)
32 views

Porte - Io Arduino Sketch

This Arduino code defines functions for setup and loop. The loop function performs bitwise operations, first ORing PORTB with the XOR of PORTD and a bit shift of PD0, and then XORing PORTD with 0x01 to toggle a single bit. The code repeatedly performs bit manipulations of the input and output ports.

Uploaded by

Dado Gaudi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views

Porte - Io Arduino Sketch

This Arduino code defines functions for setup and loop. The loop function performs bitwise operations, first ORing PORTB with the XOR of PORTD and a bit shift of PD0, and then XORing PORTD with 0x01 to toggle a single bit. The code repeatedly performs bit manipulations of the input and output ports.

Uploaded by

Dado Gaudi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

C:\Users\dntg\Documents\Arduino\porte_io\porte_io.

ino giovedì 4 gennaio 2018 00:07


void setup() {
// put your setup code here, to run once:
}

void loop() {
// put your main code here, to run repeatedly:
PORTB |= (PORTD ^ (1<<PD0)) & (1<<PB0);
PORTD = (PORTD ^ 0x01);
}

-1-

You might also like