Coder Social home page Coder Social logo

Comments (3)

thebigpotatoe avatar thebigpotatoe commented on July 23, 2024

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.

LordVallejo avatar LordVallejo commented on July 23, 2024

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.

thebigpotatoe avatar thebigpotatoe commented on July 23, 2024

Awesome glad it's fixed. Closing the issue.

from super-simple-rgb-wifi-lamp.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.