Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: Audio Library DAC analogReference(EXTERNAL); not working?

  1. #1

    Audio Library DAC analogReference(EXTERNAL); not working?

    I'm trying to get 3.3V range out of a 3.2 as USB audio interface but cant't get it to switch to external and measure 1.2V

    #include <Audio.h>
    #include <Wire.h>
    #include <SPI.h>
    #include <SD.h>
    #include <SerialFlash.h>

    AudioInputUSB usb1; //xy=249.13043212890625,328.13043212890625
    AudioOutputAnalog dac1; //xy=450.13043212890625,321.13043212890625
    AudioConnection patchCord1(usb1, 0, dac1, 0);



    void setup() {
    analogReference(EXTERNAL);
    AudioMemory(12);

    }

    void loop() {

    }

  2. #2
    Junior Member
    Join Date
    Mar 2019
    Posts
    8
    You need to use dac1.analogReference(EXTERNAL);

  3. #3
    wonderful thank you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •