Hello, im trying to write a program in which some led strips lighten up depending on the value that 2 potentiometers send. Im using the fastLed library and im getting this error all the time.
"\servidor01\usuarios\esalamancam\Documents\Arduino\libraries\fastled/clockless_trinket.h:313: error: impossible constraint in 'asm'"
.Even when I ctrl+F and try to substitute all the "asm" for a blank space, it doesnt compile.
this is my sketch, can i have a bit of help?
#include "FastLED.h"
#define NUM_STRIPS 26
#define NUM_LEDS_PER_STRIP1 3
#define NUM_LEDS_PER_STRIP2 1
CRGB leds[NUM_LEDS_PER_STRIP1];
void setup() {
}
void loop() {
int pot1=analogRead(A0);
int pot2=analogRead(A1);
if (pot1>0,pot1<84){
FastLED.addLeds<NEOPIXEL, 10>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL, 12>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL, 14>(leds, NUM_LEDS_PER_STRIP1);
}
if (pot1>85,pot1<169){
FastLED.addLeds<NEOPIXEL, 11>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL, 12>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL, 13>(leds, NUM_LEDS_PER_STRIP2);
FastLED.addLeds<NEOPIXEL, 15>(leds, NUM_LEDS_PER_STRIP1);
}
if (pot1>170,pot1<254){
FastLED.addLeds<NEOPIXEL, 11>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL, 12>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL, 13>(leds, NUM_LEDS_PER_STRIP2);
FastLED.addLeds<NEOPIXEL, 16>(leds, NUM_LEDS_PER_STRIP1);
}
if (pot1>255,pot1<339){
FastLED.addLeds<NEOPIXEL, 11>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL, 12>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL, 13>(leds, NUM_LEDS_PER_STRIP2);
FastLED.addLeds<NEOPIXEL, 17>(leds, NUM_LEDS_PER_STRIP1);
}
if (pot1>340,pot1<424){
FastLED.addLeds<NEOPIXEL, 11>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL, 12>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL, 13>(leds, NUM_LEDS_PER_STRIP2);
FastLED.addLeds<NEOPIXEL, 18>(leds, NUM_LEDS_PER_STRIP1);
}
if (pot1>425,pot1<509){
FastLED.addLeds<NEOPIXEL, 11>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL, 12>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL, 13>(leds, NUM_LEDS_PER_STRIP2);
FastLED.addLeds<NEOPIXEL, 19>(leds, NUM_LEDS_PER_STRIP1);
}
if (pot1>510,pot1<594){
FastLED.addLeds<NEOPIXEL, 11>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL, 12>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL, 13>(leds, NUM_LEDS_PER_STRIP2);
FastLED.addLeds<NEOPIXEL, 20>(leds, NUM_LEDS_PER_STRIP1);
}
if (pot1>595,pot1<679){
FastLED.addLeds<NEOPIXEL, 11>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL, 12>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL, 13>(leds, NUM_LEDS_PER_STRIP2);
FastLED.addLeds<NEOPIXEL, 21>(leds, NUM_LEDS_PER_STRIP1);
}
if (pot1>680,pot1<764){
FastLED.addLeds<NEOPIXEL, 11>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL, 12>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL, 13>(leds, NUM_LEDS_PER_STRIP2);
FastLED.addLeds<NEOPIXEL, 22>(leds, NUM_LEDS_PER_STRIP1);
}
if (pot1>765,pot1<849){
FastLED.addLeds<NEOPIXEL, 11>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL, 12>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL, 13>(leds, NUM_LEDS_PER_STRIP2);
FastLED.addLeds<NEOPIXEL, 23>(leds, NUM_LEDS_PER_STRIP1);
}
if (pot1>850,pot1<934){
FastLED.addLeds<NEOPIXEL, 11>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL, 12>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL, 13>(leds, NUM_LEDS_PER_STRIP2);
FastLED.addLeds<NEOPIXEL, 24>(leds, NUM_LEDS_PER_STRIP1);
} if (pot1>935,pot1<1023){
FastLED.addLeds<NEOPIXEL, 11>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL, 12>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL, 13>(leds, NUM_LEDS_PER_STRIP2);
FastLED.addLeds<NEOPIXEL, 25>(leds, NUM_LEDS_PER_STRIP1);
}
if (pot1>0,pot1<84){
FastLED.addLeds<NEOPIXEL, 32>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL,33>(leds, NUM_LEDS_PER_STRIP1);
}
if (pot1>85,pot1<169){
FastLED.addLeds<NEOPIXEL, 26>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL,28>(leds, NUM_LEDS_PER_STRIP1);
}
if (pot1>170,pot1<254){
FastLED.addLeds<NEOPIXEL, 26>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL,29>(leds, NUM_LEDS_PER_STRIP1);
}
if (pot1>255,pot1<339){
FastLED.addLeds<NEOPIXEL, 26>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL,30>(leds, NUM_LEDS_PER_STRIP1);
}
if (pot1>340,pot1<424){
FastLED.addLeds<NEOPIXEL, 26>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL,31>(leds, NUM_LEDS_PER_STRIP1);
}
if (pot1>425,pot1<509){
FastLED.addLeds<NEOPIXEL, 26>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL,34>(leds, NUM_LEDS_PER_STRIP1);
}
if (pot1>510,pot1<594){
FastLED.addLeds<NEOPIXEL, 26>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL,35>(leds, NUM_LEDS_PER_STRIP1);
}
if (pot1>595,pot1<679){
FastLED.addLeds<NEOPIXEL, 27>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL,34>(leds, NUM_LEDS_PER_STRIP1);
}
if (pot1>680,pot1<764){
FastLED.addLeds<NEOPIXEL, 27>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL,33>(leds, NUM_LEDS_PER_STRIP1);
}
if (pot1>765,pot1<849){
FastLED.addLeds<NEOPIXEL, 27>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL,32>(leds, NUM_LEDS_PER_STRIP1);
}
if (pot1>850,pot1<934){
FastLED.addLeds<NEOPIXEL, 27>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL,31>(leds, NUM_LEDS_PER_STRIP1);
}
if (pot1>935,pot1<1023){
FastLED.addLeds<NEOPIXEL, 27>(leds, NUM_LEDS_PER_STRIP1);
FastLED.addLeds<NEOPIXEL,30>(leds, NUM_LEDS_PER_STRIP1);
}
}