prog.cpp: In function ‘void setup()’:
prog.cpp:41:1: error: ‘PORTD’ was not declared in this scope
PORTD = B0001000;
^~~~~
prog.cpp:41:9: error: ‘B0001000’ was not declared in this scope
PORTD = B0001000;
^~~~~~~~
prog.cpp:43:9: error: ‘B00000000’ was not declared in this scope
PORTD = B00000000;
^~~~~~~~~
prog.cpp:48:1: error: ‘PORTD’ was not declared in this scope
PORTD = B00010000;
^~~~~
prog.cpp:48:9: error: ‘B00010000’ was not declared in this scope
PORTD = B00010000;
^~~~~~~~~
prog.cpp:50:9: error: ‘B00000000’ was not declared in this scope
PORTD = B00000000;
^~~~~~~~~
prog.cpp:54:21: error: ‘delayMicroseconds’ was not declared in this scope
delayMicroseconds(50);
^