 
 /************************************ CLASS OBJECTS *********************************************************/
 // LCD
-UTFT myGLCD(CTE32HR,38,39,40,41);
+UTFT LCD(CTE32HR,38,39,40,41);
 
 /************************************ VARIABLES *************************************************************/
 // Audio
-byte bb;
+byte sig; // curent signal value
 double dfreq;
 // const double refclk=31372.549;  // =16MHz / 510
 const double refclk=31376.6;      // measured

  phaccu=phaccu+tword_m; // soft DDS, phase accu with 32 bits
  icnt=phaccu >> 24;     // use upper 8 bits for phase accu as frequency information
                         // read value fron ROM sine table and send to PWM DAC
  OCR2A=pgm_read_byte_near(sine256 + icnt);    

  if(icnt1++ == 125) {  // increment variable c4ms all 4 milliseconds
    c4ms++;
    icnt1=0;
   }   
}

volatile unsigned long phaccu;   // pahse accumulator
volatile unsigned long tword_m;  // dds tuning word m

// LCD
unsigned int xPos = 0;
byte scopeBuf[478]; 
/************************************ SETUP *****************************************************************/
void setup()
{
  // LCD setup - uses delay() and therefore must go before any interrupts
  LCD.InitLCD();
  
  // Audio setup
  pinMode(AUDIOPIN, OUTPUT); // output / frequency output
