In/on my ongoing project I had been using the MP3 Trigger, a 4x20 LCD, 16 LEDs (activity scanner) and an Arduino Mega.
The WAV Trigger, so I have read, requires wavTrigger, AltSoftSerial, and Metro libraries. From the "Readme" notes for the Trigger we/I are to comment out the serial ports I want to exclude because they are not going to be called in the sketch.
When I tried to replace "Serial3" text with "wavTrigger" and tried "wTrig" in the " do while" statement the verify returns errors
All components light up and the LEDs are showing data flow, the Mega passes event notifications to the LCD, but the wavTrigger shows nothing
In my MP3 sketch has: void setup() Serial3.Begin(38400);
In the Wav sketch is wTrig.start //starting the wtrigger @ 57600
But I can use wTrig as a sudo Serial3 because the verify returns errors
My question: how can I point the wav Trigger library to Serial(n) 3, in this case?
Each subroutine is this, with variations:
if (redque > EVENTLEVEL421a && redque < EVENTLEVEL421b )
{
Serial3.write('t');
Serial3.write(48);
EVENTAUDIT421 = EVENTAUDIT421 + 1;
lcd.init();
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("Temperature is: 78");
// lcd.setCursor(0, 1);
// lcd.print("x3");
// ("00000000000000000000"
lcd.setCursor(15, 3);
lcd.print(EVENTAUDIT421); // Repeated temperature level
while(!Serial3);
{
;
}
delay(voicEpause);
yellowque = 0;
redque = 0;
}