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

Thread: USB Soundcard with additional control (Audio and Serial simultaneously?)

  1. #1
    Junior Member
    Join Date
    Jul 2015
    Posts
    6

    USB Soundcard with additional control (Audio and Serial simultaneously?)

    Hi there.

    I'm looking to build a project where I need to emulate a USB sound card, but also allow serial control data to be sent to the device also, to control some non-audio related things (primarily, some WS2812b LEDs attached).

    Is it possible to have an Audio device and a Serial device at the same time? From what I understand I'd need to edit "usb_desc.h", but I wondered if there are any special considerations when running it in Audio mode...

    Thanks

  2. #2
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    3,532
    You should be able to do both Audio and Serial as there are a few different USB types you can currently choose from the Tools=>USB Type menu, which includes both.
    like: Audio, MIDI, Serial

  3. #3
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    17,595
    In addition to selecting the right combination in Tools > USB Type, you'll probably also want to use WS2812Serial to control those WS2812B LEDs. Or if you use FastLED, use the WS2812Serial driver. The normal FastLED driver and Adafruit_NeoPixel will interfere with audio streaming if you use more than about a dozen LEDs.

Posting Permissions

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