    }   
 }
 
-/************************************** LCD FUNCTIONS *******************************************************/
-void oscilloscope(){
-  LCD.fillScr(VGA_RED); // clear screen
-  LCD.setColor(VGA_WHITE); // set wave color
-  for(int i = 1; i < 478; i++){
-    //drawLine(x1, y1, x2, y2);
-    LCD.drawLine(i-1, scopeBuf[i-1], i, scopeBuf[i]);
-  }
-}

  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
  sig = pgm_read_byte_near(sine256 + icnt);
  OCR2A= sig;   
  // fill scope buffer
  scopeBuf[xPos] = sig - 160;
  xPos++;
  if (xPos > 478){ 
    xPos = 0;
  }
  
  if(icnt1++ == 125) {  // increment variable c4ms all 4 milliseconds
    c4ms++;

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

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