Combine two Arduino projects into one PCB with the Arduino codes combined.

what I am saying is that I am using the first code as the base code and adding the tone part from the second code into the first code!!!!!!!!!!

Grumpy_Mike:

 if (digitalRead(A1) == HIGH) {

tone(8, 494, 100); // play tone 59 (B4 = 494 Hz)



with a string of


if (customKey == '*') {
    tone(8, 494, 100); // play tone 59 (B4 = 494 Hz)



Where '*' is the character you want to associate with that note.