You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.1KB

  1. #include <Audio.h>
  2. #include <Wire.h>
  3. #include <SPI.h>
  4. #include <SD.h>
  5. #include "utility/pdb.h"
  6. // GUItool: begin automatically generated code
  7. AudioInputAnalog adc1; //xy=161,80
  8. AudioOutputAnalog dac1; //xy=329,47
  9. AudioOutputPWM pwm1; //xy=331,125
  10. AudioConnection patchCord1(adc1, dac1);
  11. AudioConnection patchCord2(adc1, pwm1);
  12. // GUItool: end automatically generated code
  13. void setup() {
  14. // Audio connections require memory to work. For more
  15. // detailed information, see the MemoryAndCpuUsage example
  16. AudioMemory(12);
  17. }
  18. void loop() {
  19. // Do nothing here. The Audio flows automatically
  20. // When AudioInputAnalog is running, analogRead() must NOT be used.
  21. delay(200);
  22. Serial.print("PDB: SC=");
  23. Serial.print(PDB0_SC, HEX);
  24. Serial.print(", CONFIG=");
  25. Serial.print(PDB_CONFIG, HEX);
  26. Serial.print(", MOD=");
  27. Serial.print(PDB0_MOD);
  28. Serial.print(", IDLY=");
  29. Serial.print(PDB0_IDLY);
  30. Serial.print(", CH0C1=");
  31. Serial.print(PDB0_CH0C1);
  32. Serial.print(", DMA: ");
  33. Serial.print(dma_channel_allocated_mask, HEX);
  34. Serial.println();
  35. }