I'm not 100% awake yet ...

I’m not 100% awake yet … in fact I’m going back to bed right now. But, this is what happens when I try to compile within Atmel Studio 6. These are the only errors by the way:

    Invoking: AVR8/GNU Linker : (AVR_8_bit_GNU_Toolchain_3.4.1_830) 4.6.2
    "C:\Program Files (x86)\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.4.1.95\AVRToolchain\bin\avr-g++.exe" -o TestPoi.elf  TestPoi.o   -Wl,-Map="TestPoi.map" -Wl,--start-group -Wl,-lm -Wl,-lcore  -Wl,--end-group -Wl,-L"C:\Users\Ashley M. Kirchner\Documents\Atmel Studio\arduinoCore"  -Wl,--gc-sections  -mmcu=atmega328p  
    TestPoi.o: In function `addLeds<(ESPIChipsets)1u, 11u, 13u, (EOrder)136u>':

G:\Dropbox\Atmel Studio\TestPoi\Debug/…/./FastSPI_LED2/FastSPI_LED2.h(49,1): undefined reference to LEDS' G:\Dropbox\Atmel Studio\TestPoi\Debug/.././FastSPI_LED2/FastSPI_LED2.h(49,1): undefined reference to LEDS’
G:\Dropbox\Atmel Studio\TestPoi\Debug/…/./FastSPI_LED2/FastSPI_LED2.h(49,1): undefined reference to CFastSPI_LED2::addLeds(CLEDController*, CRGB const*, int, int)' TestPoi.o: In function CFastSPI_LED2::show()‘:
G:\Dropbox\Atmel Studio\TestPoi\Debug/…/./FastSPI_LED2/FastSPI_LED2.h(109,1): undefined reference to LEDS' G:\Dropbox\Atmel Studio\TestPoi\Debug/.././FastSPI_LED2/FastSPI_LED2.h(109,1): undefined reference to LEDS’
G:\Dropbox\Atmel Studio\TestPoi\Debug/…/./FastSPI_LED2/FastSPI_LED2.h(109,1): undefined reference to LEDS' G:\Dropbox\Atmel Studio\TestPoi\Debug/.././FastSPI_LED2/FastSPI_LED2.h(109,1): undefined reference to CFastSPI_LED2::show(unsigned char)’
collect2: ld returned 1 exit status
make: * [TestPoi.elf] Error 1

Actual Code:

/*

  • TestPoi.cpp
  • Created: 6/1/2013 6:43:42 AM
  • Author: Ashley M. Kirchner
    */

#define F_CPU 16000000
#define ARDUINO 100
#include “Arduino.h”

#include <avr/io.h>
#include <util/delay.h>
#include <avr/pgmspace.h>
#include “FastSPI_LED2\FastSPI_LED2.h”
#include “patterns.h”

#define Rmask 0x60
#define Gmask 0x18
#define Bmask 0x06

#define NUM_LEDS 48

CRGB leds[NUM_LEDS];

void setup();
void loop();

void setup() {
// WS2801 string on SPI port
LEDS.addLeds<WS2801, 11, 13, BGR>(leds, NUM_LEDS);
}

void loop() {
uint16_t i, j, k;
#ifdef PATTERN1
for (k=0; k < REPEAT1; k++) {
for (j=0; j < (sizeof(image1) / (sizeof(char) * NUM_LEDS)); j++) {
for (i=0; i <= NUM_LEDS; i++) {
unsigned char cur = (uint32_t)(pgm_read_byte_near(&image1[i+j*NUM_LEDS]));
unsigned char r = cur & Rmask;
unsigned char g = (cur & Gmask) << 2;
unsigned char b = (cur & Bmask) << 4;
leds[i] = CRGB(r, g, b);
LEDS.show();
_delay_us(STRETCH1);
}
_delay_ms(DELAY1);
}
}
#endif

// add more PATTERN* definitions here

}