Is Fastled library supposed to work with esp-12e? I can’t get any leds to work. I am using the geekcreit 12-e.
I tried “generic esp 8266”, Node-MCU 1.0, Node-MCU 0.9.
Can someone post a simple example. I looked down and saw that some people got it to work.
I added
#define FASTLED_ESP8266_NODEMCU_PIN_ORDER as the first line.
I am getting error
t_esp_led_simpleTest:32: error: stray ‘\357’ in program
I added
http://arduino.esp8266.com/versions/2.2.0/package_esp8266com_index.json
to preferences.
Mr_Happy
(Mr Happy)
May 31, 2016, 10:30pm
2
What code are you using and whic pins are you using?
Mr_Happy
(Mr Happy)
May 31, 2016, 10:31pm
3
I am using an adafruit esp12e on pins 4 and 12 with no issues.
What version of the esp8266 arduino support are you using? Also - what version of the FastLED library have you gotten, make sure to get the most recent out of github (it’s not a released version yet, so you have to get the latest from https://github.com/FastLED/FastLED directly).
ok, I will get the new version.
downloaded new library
clicked green download button from
GitHub - FastLED/FastLED: The FastLED library for colored LED animation on Arduino. Please direct questions/requests for help to the FastLED Reddit community: http://fastled.io/r We'd like to use github "issues" just for tracking library bugs / enhancements.
(GitHub - FastLED/FastLED: The FastLED library for colored LED animation on Arduino. Please direct questions/requests for help to the FastLED Reddit community: http://fastled.io/r We'd like to use github "issues" just for tracking library bugs / enhancements. is the url when you click on the green button) and installed
I believe this gets me the latest library
I also added
http://arduino.esp8266.com/versions/2.2.0/package_esp8266com_index.json
to preferences for esp board manager. Things compiled well until I entered
FastLED.addLeds<WS2812B, 13>(leds, NUM_LEDS);
*pin 13 is D7 gpio13
I am getting error
t_esp_led_simpleTest:32: error: stray ‘\357’ in program
// plug led data into D7 or gpio13
FastLED.addLeds<WS2812B, 13>(leds, NUM_LEDS);
see pastebin or look at this
same error whether I use ws2812b or neopixel as type.
#define FASTLED_ESP8266_NODEMCU_PIN_ORDER
#include “FastLED.h”
#define DATA_PIN 0
#define CLOCK_PIN 2
#define NUM_LEDS 40
#define BRIGHTNESS 255
CRGB leds[NUM_LEDS];
void setup() {
// plug led data into D7 or gpio13
FastLED.addLeds<WS2812B, 13>(leds, NUM_LEDS);
FastLED.setBrightness( BRIGHTNESS );
}
void loop() {
// Turn the LED on, then pause
leds[0] = CRGB::Red;
FastLED.show();
delay(500);
// Now turn the LED off, then pause
leds[0] = CRGB::Black;
FastLED.show();
delay(500);
}
still looks like I have the old library. I am downloading branch:master. Is there another branch I should be downloading.
fastled.h
pragma message “FastLED version 3.001.001”
The error you are getting is not related to fastLED. The stray \357 error means you have an invalid character somewhere in the code and usually occurs when copying and pasting code from a website. If the error has a specific line number associated then just delete the whole line and retype it manually.
Fixed the stray and I have the correct library. as I am getting
pragma message "No hardware SPI pins defined.
when commenting out clockpin.
All SPI access will default to bitbanged output" which is coming from what looks like some new commits 9 days ago.
When I remove the clock_pin I get this error
C:\Users\Owner\Documents\Arduino\libraries\FastLED-master/fastpin.h:206:2: error: static assertion failed: Invalid pin specified
static_assert(validpin(), “Invalid pin specified”);
Again, if anyone has any code I can look at it would be greatly appreciated.
@Juergen_Bruegl
its working. Thank you. I was trying to redo the mapping. I stripped everything down and set ledpin on D7 to 7. Nice code Juergen.
@Gregg_Novosad community is all about sharing and helping each other