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.

28 lines
744B

  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. }