Closed CorpusCallosum closed 2 years ago
Hi Jack,
I just cloned to a fresh directory, opened the sketch in Arduino, and built without error. [Update ... the fresh clone also built cleanly under PlatformIO]
Are you using PlatformIO to build?
If using Arduino, have you manually installed the required libraries (see README.md)?
I, too, scanned the config files and could not find the DATA_PIN variable in the ordinary build. I mainly use the "thing" build, but occasionally use the single pin version. Likewise, I built it with both Arduino and PlatformIO, and it compiled ok. I just want to be able to use another pin.
Looks like DATA_PIN is defined here now: https://github.com/jasoncoon/esp8266-fastled-webserver/blob/main/esp8266-fastled-webserver/include/configs/controller/controller_esp8266.h
Thanks, Jason.
@dherkes: The easiest way to use a different data pin, when compiling in Arduino:
prior to the line #include "config.h"
, simply define the variable yourself:
#define DATA_PIN 4
That's it.
I am now using PlatformIO. I, for one, would appreciate the examples in the code.
Hi @dherkes ... check out https://github.com/jasoncoon/esp8266-fastled-webserver/discussions/218#discussioncomment-1707936.
As you can see, in PlatformIO, it's even easier.
Rather than modify any of the checked-in files, simply create the platformio_override.ini file with your own environment section, with the settings you want/need.
I'll add a comment to the top of the .ino
file to help make this clearer.
Hi, I just pulled from the main branch, and when I try to compile the code I'm getting this error:
296 | FastLED.addLeds<LED_TYPE, DATA_PIN, COLOR_ORDER>(leds, NUM_PIXELS); // for WS2812 (Neopixel) no matching function for call to 'CFastLED::addLeds<WS2811, <expression error>, RGB>(CRGB [200], int)'
Looking into it, appears that the DATA_PIN is undefined. I searched through the code and could not find any definition for it anywhere. What am I missing?
Thanks.