您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

PassthroughTest.ino 671B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * AK4558 Passthrough Test
  3. * 2015 by Michele Perla
  4. *
  5. * A simple hardware test which receives audio from the HiFi Audio CODEC Module
  6. * LIN/RIN pins and send it to the LOUT/ROUT pins
  7. *
  8. */
  9. #include <Audio.h>
  10. #include <Wire.h>
  11. #include <SPI.h>
  12. #include <SD.h>
  13. #include <SerialFlash.h>
  14. AudioInputI2S i2s1;
  15. AudioOutputI2S i2s2;
  16. AudioConnection patchCord1(i2s1, 0, i2s2, 0);
  17. AudioConnection patchCord2(i2s1, 1, i2s2, 1);
  18. AudioControlAK4558 ak4558;
  19. void setup() {
  20. // put your setup code here, to run once:
  21. AudioMemory(12);
  22. while (!Serial);
  23. ak4558.enable();
  24. ak4558.enableIn();
  25. ak4558.enableOut();
  26. }
  27. void loop() {
  28. }