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.

34 satır
912B

  1. /*
  2. * A simple hardware test which receives audio on the A2 analog pin
  3. * and sends it to the PWM (pin 3) output and DAC (A14 pin) output.
  4. *
  5. * This example code is in the public domain.
  6. */
  7. #include <Audio.h>
  8. #include <Wire.h>
  9. #include <SPI.h>
  10. #include <SD.h>
  11. // GUItool: begin automatically generated code
  12. AudioInputAnalog adc1; //xy=161,80
  13. AudioOutputAnalog dac1; //xy=329,47
  14. AudioOutputPWM pwm1; //xy=331,125
  15. AudioConnection patchCord1(adc1, dac1);
  16. AudioConnection patchCord2(adc1, pwm1);
  17. // GUItool: end automatically generated code
  18. void setup() {
  19. // Audio connections require memory to work. For more
  20. // detailed information, see the MemoryAndCpuUsage example
  21. AudioMemory(12);
  22. }
  23. void loop() {
  24. // Do nothing here. The Audio flows automatically
  25. // When AudioInputAnalog is running, analogRead() must NOT be used.
  26. }