GithubHelp home page GithubHelp logo

Comments (9)

forkineye avatar forkineye commented on June 5, 2024

It's not fully implemented yet. Right now, it only handles the compiled sketch binary, similar to the standard Arduino ESP8266 OTA stuff. I have a tool planned that'll combine the sketch and SPIFFS images into a single file for upload, but will be a few weeks before I can start on it.

from espixelstick.

marcfon avatar marcfon commented on June 5, 2024

I understand. So as long as the code changes aren't related to data/www the firmware update should work just fine right?

from espixelstick.

forkineye avatar forkineye commented on June 5, 2024

Yep, as long as you aren't changing the web handler interface stuff you'll be fine.

from espixelstick.

marcfon avatar marcfon commented on June 5, 2024

Great! And according to esp8266/arduino-esp8266fs-plugin#4 the SPIFFS should support OTA network update straight from the Arduino IDE.

Not really a question about the firmware but if I would want to do light up some pixels on startup as a test sequence, would that be possible from within the current code? I guess I would need to create a data packet and push that to the pixels right?

from espixelstick.

forkineye avatar forkineye commented on June 5, 2024

You could manually put data in the buffer if you want. It'll stay there until an incoming E1.31 stream overwrites it. I plan on adding testing functionality to the UI as well in the future, so you could use that for static lighting.

from espixelstick.

marcfon avatar marcfon commented on June 5, 2024

Where could I look for a clue on how to put the right data in the buffer? Let's say I'd want to light the first led green or something like that. An alternative approach that I'm thinking of is just to use the adafruit neopixel library to achieve this... or would that be silly?

from espixelstick.

forkineye avatar forkineye commented on June 5, 2024

Inside the main loop where is sets the value: https://github.com/forkineye/ESPixelStick/blob/master/ESPixelStick.ino#L535

Just call the following, it's in RGB order - pixels.setValue(address, value);
To light up max green for the first pixel - pixels.setValue(1, 255);
To light up max red for the second pixel - pixels.setValue(3, 255);

from espixelstick.

marcfon avatar marcfon commented on June 5, 2024

Works just as advertised! Easy enough to light up pixels (channels). Thanks.

from espixelstick.

forkineye avatar forkineye commented on June 5, 2024

OTA updates via web page implemented. It uses a custom format that combines the sketch and spiffs bins that I'll posting with each release. The included tool in the release allows you to build your own as well - 846858f

from espixelstick.

Related Issues (20)

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.