// Note: This code uses registers specific to AVR microcontrollers (Uno, Nano, Leonardo, Mega, etc.)
// it will not compile for other architectures
voidsetup(){DDRB=DDRB|0b00100000;// set PB5 (pin 13 on Uno/Nano, pin 9 on Leonardo/Micro, pin 11 on Mega) as OUTPUT
Serial.begin(9600);}voidloop(){PORTB=PORTB^0b00100000;// invert PB5, leave others untouched
delay(100);}