merging sketch but getting error messages

ok here goes, newbie of course but catching on quickly. i found the first sketch online and it works perfect, found the second sketch but don’t need the mp3 part so i successfully removed all that. onto merging the two together i get an error message for the first section right after void loop. it is exactly the same and works in first sketch but doesn’t compile in new sketch, need some guidance please.

heres the error message;

Arduino: 1.6.12 (Windows 7), Board: “Pro Trinket 5V/16MHz (USB)”

C:\Users\dano\Documents\Arduino\talker\talker.ino: In function ‘void loop()’:

talker:92: error: ‘servo_test’ was not declared in this scope



talker:93: error: ‘audio_updates’ was not declared in this scope

audio_updates(); //read sample from audio input and apply average to buffer


talker:96: error: ‘action’ was not declared in this scope

action(); //servos are handled in the action loop


talker:99: error: ‘detach_servos’ was not declared in this scope



exit status 1
‘servo_test’ was not declared in this scope

This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.

JawDuino.ino (2.61 KB)

_3axismp3sketch.ino (12.3 KB)

talker.ino (12.8 KB)

In talker.ino: You have those functions declared INSIDE the loop() function, move them outside.

Please do us, and yourself, a favour and post the programs here to avoid the need to download them.

i finally figured out how to do that UKHeliBob. thanks for the useful suggestion outsider, i will give it a try.