ESP32_Scope/ESP32_Oscilloscope/debug_routines.ino

16 lines
359 B
C++

#ifdef DEBUG_BUF
void debug_buffer() {
ADC_Sampling();
i2s_adc_disable(I2S_NUM_0);
delay(DEBUG_DELAY);
for (uint32_t i = 0; i < B_MULT * NUM_SAMPLES; i++) {
for (int j = 0; j < 1; j++) {
Serial.println(i2s_buff[i]);
}
delay(5);
}
i2s_zero_dma_buffer(I2S_NUM_0);
i2s_adc_enable(I2S_NUM_0);
while (1);
}
#endif