 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
   Setup_timer2();

#define AUDIOPIN 10

/************************************ CLASS OBJECTS *********************************************************/
// LCD
UTFT LCD(CTE32HR,38,39,40,41);

/************************************ VARIABLES *************************************************************/
// Audio
byte sig; // curent signal value
double dfreq;
// const double refclk=31372.549;  // =16MHz / 510
const double refclk=31376.6;      // measured
// variables used inside interrupt service declared as voilatile
volatile byte icnt;              // var inside interrupt
volatile byte icnt1;             // var inside interrupt

/************************************ INCLUDED LIBS & HEADERS ***********************************************/
#include "avr/pgmspace.h"
#include "Wavetables.h"

/************************************ DEFINITIONS ***********************************************************/
// Audio
