evilgeniuslabs / tree-v2

6.5’ white tree with 250 WS2811 RGB LEDs, driven by an ESP8266 microcontroller using the FastLED library, controlled with a web app over WiFi and/or an infrared remote control.
GNU General Public License v3.0
134 stars 34 forks source link

Sketch does not compile #28

Open vatnique66 opened 4 years ago

vatnique66 commented 4 years ago

Hello Jason!
When trying to compile I get this error - too many initializers for 'const uint8_t [100] {aka const unsigned char [100]}'Could you say that I have to change in the Map.h field for my number of neopixels, which is 100

jasoncoon commented 4 years ago

Hello! This sketch is designed for 300 LEDs, so there are 300 entries in the arrays in the Map.h file: https://github.com/evilgeniuslabs/tree-v2/blob/master/Map.h

To get it to work with 100 LEDs, you'll need to rework those arrays with just 100 entries. Here's the Google Sheet I used to calculate the numbers for those arrays: https://docs.google.com/spreadsheets/d/1ib-8P9rvbIDgRNVO_Omekv3-u5b-ewHhnlkTtL8K9bk/edit?usp=sharing

More details, if you haven't already read through it: https://www.evilgeniuslabs.org/tree-v2#mapping

vatnique66 commented 4 years ago

Thank you Jason- I liked the effects. And I don’t even want to use it on the tree. I just wanted to use this on tape. I have two 100 leds on WS2811 and 150 on WS2812B. In Internet, I saw that you just need to specify a fixed number of neopixels in the Map.h tab. The video https://www.youtube.com/watch?v=81C8KamkQUw&list=PLI8L7aOLKSwyMUAkjRx-l0b0nm6OPWktj&index=4&t=365s even indicates where. But even if I do everything the same way, I still get a compilation error

jasoncoon commented 4 years ago

For more general purpose usage, try my other project that the tree is based on: https://github.com/jasoncoon/esp8266-fastled-webserver

It won't matter how many LEDs you have with it. Tree-v2 is specifically mapped for trees with 300 LEDs.

vatnique66 commented 4 years ago

Sorry Jason. It is this project that I am trying to replicate(esp8266-fastled-webserver). It’s just that the video that I gave as an example, there was a wrong link. Because of this, I myself write in the wrong thread. Now I’ll try to see the link that you gave.