   //  return;
   for(i = 0; i < strlen(string); i++) {
     sendChar(string[i]);
-    Serial.println(string[i]);
+    //Serial.println(string[i]);
   }
 }
 


// This will trigger at 8kHz
ISR(ADC_vect) {
  static uint8_t tcnt = 0;
  TIFR1 |= _BV(ICF1);
  // Wave shaping
  PORTD |= _BV(2);
  // TODO: Improve how this would perform.
  if(tcnt < 82)
    dds.setAmplitude(amplitudeShape[(82-tcnt)/2]);
  if(tcnt > (255-82))
    dds.setAmplitude(amplitudeShape[(tcnt-173)/2]);
  //else if(tcnt > (255-64))
  //  dds.setAmplitude((255 - tcnt));
  //else dds.setAmplitude(255);
  dds.clockTick();
  if(tcnt++ == 0) { // Next bit
    //PORTD ^= _BV(2); // Diagnostic pin (D2)
    if(!sent) {


void setup() {
  Serial.begin(9600);
  pinMode(3, OUTPUT);
  pinMode(2, OUTPUT);
  // put your setup code here, to run once:
  dds.setReferenceClock(32000);
  dds.start();
  dds.setFrequency(1000);
  dds.on();
