Chiptune Project don't work on Mega?

change DDRD=0xff; to DDRH=0xff; then output should be on pin 9.

And don't connect it directly to a speaker or led without a resistor :slight_smile: