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.

PassThroughUSB.ino 590B

8 jaren geleden
8 jaren geleden
123456789101112131415161718192021
  1. #include <Audio.h>
  2. #include <Wire.h>
  3. #include <SPI.h>
  4. #include <SD.h>
  5. #include <SerialFlash.h>
  6. AudioInputUSB usb1; //xy=200,69 (must set Tools > USB Type to Audio)
  7. AudioOutputI2S i2s1; //xy=365,94
  8. AudioConnection patchCord1(usb1, 0, i2s1, 0);
  9. AudioConnection patchCord2(usb1, 1, i2s1, 1);
  10. AudioControlSGTL5000 sgtl5000_1; //xy=302,184
  11. void setup() {
  12. AudioMemory(12);
  13. sgtl5000_1.enable();
  14. sgtl5000_1.volume(0.6);
  15. }
  16. void loop() {
  17. // TODO: make PC's volume setting control the SGTL5000 volume...
  18. }