Comments (3)
Hi Mate, thanks for coming over here. Will be much easier to deal with coding issues here than Instructables.
From the get go I think it looks like you have not set up the LED's properly in the sketch. As you state you are not using 66 LED's and have instead a 24 LED neo pixel ring I assume from Adafruit or such. Due to the new geometry and lower number of LED's used you will need to be a bit creative and change some of the code for it to work with all my modes.
As a simple overview, I believe what is happening is the modes are trying to address and LED that does not exist in the locations specified by the topLeds and bottomLeds arrays. This the causes the errors you see repeated as the light boots again and attempts to set the same mode causing it to crash again. If you would like to read a little more on arrays and why this is causing the error have a quick look at this.
If you want to use my code for everything else like the website, rainbow, and colour mode, The results will be the same. But for modes like bell curve and night rider, the specific LED's being addressed will be completely wrong.
So as a fix for your project I hope, try replacing lines 38 to 41 to;
int topLeds[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11};
int bottomLeds[] = {12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23};
int leftLeds[] = {};
int rightLeds[] = {};
This should map your LED's correctly and stop the crashing. To be sure there is nothing else wrong with the flash on the chip I recommend also erasing all the memory on the ESP when uploading as i have stated in the Instructable.
Let me know if this works,
from super-simple-rgb-wifi-lamp.
Hello Sir.
Thank you so much, the error was solved.
You are a very kind person for taking your time to teach and guide others.
Thanks a lot, it works fantastic
from super-simple-rgb-wifi-lamp.
Awesome glad it's fixed. Closing the issue.
from super-simple-rgb-wifi-lamp.
Related Issues (19)
- Unable to compile the sketch HOT 3
- Question: Web page implementation HOT 2
- Error in compiling HOT 3
- Feature Request: Create global brightness slider in UI HOT 7
- No web interface HOT 7
- Feature Request: Encapsulate settings / config in extra file HOT 4
- Fadetoblack gives one extra full light glimp HOT 12
- Flickering LEDs + Possible solution HOT 10
- Library Development Discussion
- Switching between config pages allways turns on the Lamp HOT 3
- Add support for Amazon Alexa HOT 4
- Webpage not loading format or responding to light strip interaction HOT 4
- Miss spelling in web page HOT 1
- SaturationFade error HOT 1
- Problem: SSID and Password is not permanent HOT 1
- OTA HOT 3
- OTA not working most of the time HOT 6
- Suggestion HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from super-simple-rgb-wifi-lamp.