Hi, I am working on getting the Fastled 2.1 library to work on my

Hi, I am working on getting the Fastled 2.1 library to work on my set of Neopixels 60 led strip (http://www.adafruit.com/products/1138).

I am using a teensy 3.1 controller. I am a complete noob when it comes to this stuff so I will try to keep it short and sweet. When I compile any of the demo programs (Cylon, first light, etc)

I keep getting this error

\libraries\FastLED/delay.h: In function ‘void _delaycycles_AVR() [with int LOOP = 12; int PAD = 1]’:

\libraries\FastLED/delay.h:35:4: error: unknown register name ‘r16’ in ‘asm’

and so on and so forth.

Full paste here
____
In file included from C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/fastspi.h:6:0,
from C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/FastLED.h:6,
from FirstLight.ino:6:
C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/delay.h: In function ‘void _delaycycles_AVR() [with int LOOP = 12; int PAD = 1]’:
C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/delay.h:35:4: error: unknown register name ‘r16’ in ‘asm’
C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/delay.h: In function 'void delaycycles_AVR() [with int LOOP = 12; int PAD = 2]’:
C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/delay.h:35:4: error: unknown register name ‘r16’ in ‘asm’
C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/delay.h: In function 'void delaycycles_AVR() [with int LOOP = 13; int PAD = 2]’:
C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/delay.h:35:4: error: unknown register name ‘r16’ in ‘asm’
C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/delay.h: In function 'void delaycycles_AVR() [with int LOOP = 12; int PAD = 0]’:
C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/delay.h:35:4: error: unknown register name ‘r16’ in ‘asm’
C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/delay.h: In function 'void delaycycles_AVR() [with int LOOP = 13; int PAD = 1]’:
C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/delay.h:35:4: error: unknown register name ‘r16’ in ‘asm’

What am I doing wrong?

Here is a pastebin of the code - Since the google plus pasting sucks. http://pastebin.com/UUvvYGb6

Have you installed the latest teensyduino to get teensy 3.1 support?

I have Version 1.18 installed from here. https://www.pjrc.com/teensy/td_download.html

Have you selected teensy3.1 under the board option in the, I think tools menu?

Indeed I have. I was able to run other libraries but not this one.

Can you put up a paste of your entire build output?

Something is off in your setup, but I can’t see what is from the bit you posted (and I’m currently building/running/testing against a teensy 3.1 as I was just debugging some timing issues at lower clock rates on it).

Now that I’m actually awake, let me try asking again - in the arduino options turn on “Show verbose output during compilation” - then send me the full output of that for a build.

Also, I believe teensyduino ships with an older version of the FastLED library that doesn’t yet support the teensy 3.1 - it is possible that arduino is including that version of the library instead of the newer one you downloaded/installed.

Ah, Now I see the option. I was half asleep as well. Here is a paste bin including of pictures of the project and how they are connected to the teensy 3.1. It should give you a better idea of what I am working with.

http://pastebin.com/RE2f3Vk5

Just an fyi - I am using the most recent program from http://pjrc.com - it says Version 1.18 on the site even though the software says 1.0.5-r2

Yup - Paul hasn’t updated to FastLED 2.1 yet, which makes sense, ti’s still in beta. This line:

C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/fastpin.h:419:2: warning: #warning “No pin/port mappings found, pin access will be slightly slower. See fastpin.h for info.” [-Wcpp]

tells me that it’s running an older version of the library. When the library can’t figure out what hardware platform you’re compiling for it drops back to AVR - which is why you were getting the error messages that you are.

Please remove the folders C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED and FastSPI_LED - then do a new grab of the FastLED2.1 library from here - https://github.com/FastLED/FastLED/archive/FastLED2.1.zip - and unzip that into the libraries folder (make sure to rename the directory to FastLED).

That was the solution! I can’t thank you enough. I am just starting out with programming these light strips. It gets overwhelming fast.

Dan - Is there a good place to start programming with fastled. I have no clue how to put the code together to control the led strip. Sorry for being a noob.

@Matthew , what do you need to know about controlling your LED strip? Just about all of us here write code with FastLED, so just ask your question(s) and someone will jump in and help. Make sure you start a new thread though.

Ashley - I have been asking away and you all have really been supportive! It’s very refreshing to have such an awesome community on here. =]

Glad to hear it. Don’t be afraid to ask, no matter how simple or dumb you might think it is. We’re all here to learn.