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’
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.
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).
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.