 /************************************ LOOP ******************************************************************/
 void loop()
 {
-  // LCD clear
-  //LCD.fillScr(VGA_RED);
-  
-  // LCD - Oscilloscope
-  oscilloscope();
-  
-  
+
   // Audio
   while(1) {
-     if (c4ms > 250) {                 // timer / wait for a full second
+     if (c4ms > 1) {                 // timer / wait for a full second
       c4ms=0;
       dfreq=analogRead(0);             // read Poti on analog pin 0 to adjust output frequency from 0..1023 Hz
 

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

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

#define AUDIOPIN 10

/************************************ CLASS OBJECTS *********************************************************/


/************************************ 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
