 int value2;
 
 void loop() {
+    #ifdef ADC_USE_PDB
 
     if (Serial.available()) {
         c = Serial.read();

    //digitalWriteFast(LED_BUILTIN, !digitalReadFast(LED_BUILTIN));

    delay(10);
}



}
#endif

#ifdef ADC_USE_PDB
// pdb interrupt is enabled in case you need it.
void pdb_isr(void) {
        PDB0_SC &=~PDB_SC_PDBIF; // clear interrupt
        //digitalWriteFast(LED_BUILTIN, !digitalReadFast(LED_BUILTIN) );
}
#endif
