   {
     
   }
+  
+  if(localChanged == true)
+  {
+	sendUSBData();
+  }
+  
+  uint8_t bytesAvailable = readUSBData();
+  
+}
+
+uint8_t readUSBData()
+{
+  int readBytes = 0;
+  while (Serial.available() && readBytes <= USB_RECV_BUFFER) {
+    usbRecvBuffer[readBytes++] = Serial.read();
+  }
+  return readBytes - 1;
+}
+
+void sendUSBData()
+{
+  ClearUSBBuffers(USB_SEND_BUFFER);
+  
+  int sendBytes = 4;
+  
+  // Magic bytes
+  usbSendBuffer[0] = '1';
+  usbSendBuffer[1] = '3';
+  usbSendBuffer[2] = '3';
+  usbSendBuffer[3] = '7';
+  
+  // Gen1 setting, 8 byte
+  //usbSendBuffer[4] = 
+  
+  Serial.write(usbSendBuffer, sendBytes);
+  //rawhid_send(int num, void *buf, int len, int timeout);
+	
 }
 
 void RedrawMain()

knobState_t knobState2;
knobState_t knobState3;

void setup()
{
  lcd.begin(DOG_LCD_M163);

#include <DogLcd.h>
#include <Bounce2.h>
#include "si5351.h"

// General defines
#define USB_BUFFER_SIZE			 64
#define USB_SEND_BUFFER          0b01
#define USB_RECV_BUFFER          0b10
#define USB_BOTH_BUFFER          0b11

// Knob pin Defines
#define PIN_KNOB_1_A             5
