Trouble with Radio Shack Tri-Color LED strips and the Yun

I have some Tri-Color LED strips I picked up at Radio Shack. The strip is 1 meter long and has ten sections of LEDs. Each section has a serial ship and three Tri color LEDs. You send data serially using on a single PIN from the Arduino.

I have them working fine with an Uno using the supplied Sketch from Radio Shack. However, they don't work on the Yun. There is some kind of code that is supposed to detect what board its running on and it appears to only work on the Uno or the Mega. Here is a thread on the topic in the Arduino LED forum.

http://forum.arduino.cc/index.php?topic=131776.0

Here is a section of the code that I think tries to determine which board is running,

#include <avr/pgmspace.h>

// ******** DEBUG ==== should auto config to adapt different mother board *********
//#define DATA_1 (PORTF |=  0X01)    // DATA 1    // for ATMEGA
//#define DATA_0 (PORTF &=  0XFE)    // DATA 0    // for ATMEGA
//#define STRIP_PINOUT DDRF=0xFF  // for ATMEGA
#define DATA_1 (PORTC |=  0X01)    // DATA 1    // for UNO
#define DATA_0 (PORTC &=  0XFE)    // DATA 0    // for UNO
#define STRIP_PINOUT (DDRC=0xFF)    // for UNO

Does anyone have an idea how to make this work on the Yun?

The program provided does not automatically select the Arduino compatible board.
The code works, but you must check which PORT assignment is being used. The sample program from RS is creates a serial data stream for the LED strip that is OUTPUT on the Analog input PORT A0 (Arduino UNO Analog Pin ... sometimes called Analog 1, but on the board is printed A0.
I think that RS had several reasons for choosing this - especially convenience, since the Vin and Gnd pins are just nearby, making the three wire connection to the LED strip very easy.
I don't know how to make it work with the YUN - but you should be able to change the PORT assignment and then it should work.