Hi yall! Just got started and having trouble with using fastLED with a lightblue Bean. Getting the neopixel lib to work, but nothing is showing when I’m using fastLED. Anyone with experience?
ws2812 stip…
#include “FastLED.h”
#define NUM_LEDS 23
#define DATA_PIN 3
CRGB leds[NUM_LEDS];
void setup() {
FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);
}
void loop() {
leds[0] = CRGB::Red;
FastLED.show();
delay(30);
}
The bean uses a different port to pin mapping. I’ll have to do up definitions for it to be supported.
Oohhh. So it wasn’t me being stoopid atleast…
Please do! The beans “built-in” bluetooth functionality is very interesting!
also. Thanks!
Pull the latest version of master@HEAD - I just checked in support for the light blue bean’s pin layout, in theory
I’m not familiar with github lingo but I downloaded the .zip again and reinstalled the library.
And now it won’t compile^^
Here are the errors if that’s any help:
Arduino: 1.6.7 (Mac OS X), Board: “LightBlue Bean”
WARNING: Category ‘’ in library EEPROM is not valid. Setting to ‘Uncategorized’
WARNING: Category ‘’ in library SPI is not valid. Setting to ‘Uncategorized’
WARNING: Category ‘’ in library SoftwareSerial is not valid. Setting to ‘Uncategorized’
WARNING: Category ‘’ in library Wire is not valid. Setting to ‘Uncategorized’
Warning: platform.txt from core ‘Arduino AVR Boards’ contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} “{build.path}/{archive_file}” “{object_file}”, automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} “{archive_file_path}” “{object_file}”. Consider upgrading this core.
/Users/johannes/Documents/Arduino/libraries/FastLED-master/FastLED.cpp: In member function ‘void CFastLED::delay(long unsigned int)’:
/Users/johannes/Documents/Arduino/libraries/FastLED-master/FastLED.cpp:130:9: error: ‘yield’ was not declared in this scope
yield();
^
exit status 1
Error compiling.
Could not find boards.txt in /Applications/Arduino 1.6.7.app/Contents/Java/hardware/LightBlue-Bean/cores. Is it pre-1.5?
Could not find boards.txt in /Applications/Arduino 1.6.7.app/Contents/Java/hardware/LightBlue-Bean/cores. Is it pre-1.5?
Ah - weird - the bean doesn’t support that? That’s annoying. I just added a fix in for that - so re-download.
Works! Thanks!
Will write here again when I’ve done more than lighting up the first led…