PORTD include from D0 to D7 . It's a I/O register.
And DDRD =0xFF means pinMode(0,OUTPUT) to pinMode(7,OUTPUT)
But I don't use the D12 for button now (in shield I use D10), it can used as a switch button for different waveform.
PORTD include from D0 to D7 . It's a I/O register.
And DDRD =0xFF means pinMode(0,OUTPUT) to pinMode(7,OUTPUT)
But I don't use the D12 for button now (in shield I use D10), it can used as a switch button for different waveform.