//*******************************************//
#include
int STD = A0;
int Q1 = A1;
int Q2 = A2;
int Q3 = A3;
int Q4 = A4;
....
//Check once every 5 ms
void dtmf_decode(void)
{
....
}
void setup()
{
.....
}
void loop()
{
//Complete the decoding
if(Decod_finished)
{
Decod_finished = 0;
Serial.print(" Activate : " );
switch(Q_dat){
case 1 : Serial.print("1 \n" ); break;
case 2 : Serial.print("2 \n" ); break;
case 3 : Serial.print("3 \n" ); break;
case 4 : Serial.print("4 \n" ); break;
case 5 : Serial.print("5 \n" ); break;
case 6 : Serial.print("6 \n" ); break;
case 7 : Serial.print("7 \n" ); break;
case 8 : Serial.print("8 \n" ); break;
case 9 : Serial.print("9 \n" ); break;
case 10 : Serial.print("0 \n" ); break;
case 11 : Serial.print("* \n" ); break;
case 12 : Serial.print("# \n" ); break;
case 13 : Serial.print("A \n" ); break;
case 14 : Serial.print("B \n" ); break;
case 15 : Serial.print("C \n" ); break;
default : Serial.print("D \n" ); break;
}
.....