XS1-L2-USB-AUDIO-2.0-MC beginner

Technical discussions related to any XMOS development kit or reference design. Eg XK-1A, sliceKIT, etc.
gana
Active Member
Posts: 43
Joined: Sat Sep 29, 2012 8:38 am

XS1-L2-USB-AUDIO-2.0-MC beginner

Post by gana »

Hello
I bought XS1-L2-USB-AUDIO-2.0-MC board so first i want to test on it.

I installed firmware usb.xe it is ok but i want to test LED-s like illuminating in order as i wanted.
so i typed small code i built it on compiler but did not flash into the device
give me some advice please.

Code: Select all

#include <platform.h>
#define FLASH_PERIOD 20000000

out port x0ledB = XS1_PORT_8B;

int main(void) {
  timer tmr;
  unsigned ledOn = 1;
  unsigned t;
  tmr :> t;
  while (1) {
    x0ledB <: ledOn;
    t += FLASH_PERIOD;
    tmr when timerafter(t) :> void;
    ledOn = !ledOn;
  }

  return 0;
}
and i have a problem that i can listen to music by only OUT 1/2 so why?


User avatar
Ross
XCore Expert
Posts: 968
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

gana wrote: and i have a problem that i can listen to music by only OUT 1/2 so why?
What channels are you expecting it to output from? I assume you are listening to a stereo source?

If so you would need to configure the host to output to other channels. In OSX this can be done in Audio/Midi Setup. On Windows do this in the player (e.g. foobar2000 or similar)

(I have edited your original post slightly for readability purposes)

Edit: Multiple threads. Locking.