-
I have compiled and uploaded the newly updated parallel sketch. I really like the changes made so far, but I have a question. Where do I go about defining the NUM_LEDS variable? I have six strings of 50 LEDS. Thank you for all the hard work and intelligent design |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I'm still learning the new config layout as well, but I think this is where you'd change Lower in that same file you'll also find If you're using Arduino, you'll also need to comment out If you haven't already, I highly recommend trying out the new PlatformIO support that @henrygab has worked so hard on adding: #207 (comment) It really is so much easier and better. I now regret not trying it sooner. 😆 |
Beta Was this translation helpful? Give feedback.
-
Your post made me realize I had not added Expand either instruction below for details. In Arduino
In the Arduino environment, you simply edit config.h as follows: esp8266-fastled-webserver/esp8266-fastled-webserver/config.h Lines 27 to 28 in b1dd8e9 You would replace line 28 with the following contents: #define PRODUCT_ESP8266_THING
#define NUM_PIXELS 72
#define PIXELS_ON_DATA_PIN_1 5
#define PIXELS_ON_DATA_PIN_2 7
#define PIXELS_ON_DATA_PIN_3 11
#define PIXELS_ON_DATA_PIN_4 13
#define PIXELS_ON_DATA_PIN_5 17
#define PIXELS_ON_DATA_PIN_6 19 In PlatformIO
PlatformIO allows you to add build environments via the file [env:custom_esp_thing_older]
platform = ${common.platform_default}
platform_packages = ${common.platform_packages}
lib_deps = ${esp8266.lib_deps}
board = d1_mini
board_build.ldscript = ${common.ldscript_4m1m}
build_unflags = ${common.build_unflags}
build_flags =
${common.build_flags_esp8266}
-D PRODUCT_ESP8266_THING
-D NUM_PIXELS=72
-D PIXELS_ON_DATA_PIN_1=5
-D PIXELS_ON_DATA_PIN_2=7
-D PIXELS_ON_DATA_PIN_3=11
-D PIXELS_ON_DATA_PIN_4=13
-D PIXELS_ON_DATA_PIN_5=17
-D PIXELS_ON_DATA_PIN_6=19
Then, manually refresh the PlatformIO project list: That's all. Your custom build environment will appear, and expanding it will give you the same options to build / upload file system / etc. |
Beta Was this translation helpful? Give feedback.
-
[update] Not critical, but because the default is six strings of 50 pixels, for your particular situation, you don't even have to define |
Beta Was this translation helpful? Give feedback.
Your post made me realize I had not added
esp_thing
as a build environemt in PlatformIO.ini. I'm fixing that now. :) The instructions below should work even with currentplatformio.ini
in main branch.Expand either instruction below for details.
In Arduino
In the Arduino environment, you simply edit config.h as follows:
esp8266-fastled-webserver/esp8266-fastled-webserver/config.h
Lines 27 to 28 in b1dd8e9
You would replace line 28 with the following contents: