Git Product home page Git Product logo

Comments (6)

Protonerd avatar Protonerd commented on August 31, 2024

In fact it could be that it will not work. To be honest I did not validate the Jukebox mode any more, since due to the storage limitation on Stardust probably no one is going to use it... on Prime you can, if you want to use it I need a bit of time to debug it. Is it urgent? I have a lot of other, more saber-critical improvements on my list to work on first.

Solution to the problem is probably simple though. But as far as I remember I could make it work for LED string sabers, not for neopixels though, and this mode is anyway somehow a nobrainer for Star LED setups.

from fx-saberos.

Argathena avatar Argathena commented on August 31, 2024

There is no rush, but I am using star led..

And yes on a stardust, you are very limited. I removed 2 fonts and add Duel Fates song. And that all fits. I mainly want it for a prime, when I order a new one or two that is. Might be next week I order that.

from fx-saberos.

kirkyb avatar kirkyb commented on August 31, 2024

I also tried to activate the Jukebox a while back and received the same error.

I'm not really interested in this to play the full song, but the first 30 seconds or so in order to set the scene. It would be perfect if you could double press whilst the saber's off to start the song, followed by a single click to ignite the blade. Song choice could possibly be chosen in the menu?

from fx-saberos.

Argathena avatar Argathena commented on August 31, 2024

Precisely my thought. I'm fine with 1 soundfont and 1 full song. Or 2 fonts and half a song. Specifically Duel Fates! All about scene setting for sure. We all have an mp3 player ;-)

from fx-saberos.

DRagonenko avatar DRagonenko commented on August 31, 2024

Wait and hope that this feature will work

from fx-saberos.

MissionTrooper-TK-76271 avatar MissionTrooper-TK-76271 commented on August 31, 2024

I hope this helps until there is an official fix.

I got it to work with the Stardust 3. I'm using a STAR_LED, so I commented out JukeBox_Stroboscope(); in FX-Saberos.ino

#ifdef STAR_LED
// JukeBox_Stroboscope();
#endif

I then had to modify Light.cpp as follows. (Changes in bold.)

#ifdef JUKEBOX
void JukeBox_Stroboscope(cRGB color) {

uint16_t variation = 0;
uint16_t temp_variation=0;
cRGB tempcolor;

for (uint8_t i=0; i<=SAMPLESIZEAVERAGE-1;i++) {
temp_variation=temp_variation + constrain(abs(analogRead(SPK1) - analogRead(SPK2)),0,512);
//Serial.println(abs(analogRead(SPK1) - analogRead(SPK2)));
}
variation=temp_variation/SAMPLESIZEAVERAGE;
// assumption -> variation max 280
//Serial.print("\t");Serial.println(variation);

#ifdef PIXELBLADE
for (uint16_t i = 1; i <= variation; i++) {
pixels.set_crgb_at(i, color);
}
tempcolor.r = 0;
tempcolor.g = 0;
tempcolor.b = 0; // RGB Value -> Off
for (uint16_t i = (variation)+1; i <= NUMPIXELS; i++) {
pixels.set_crgb_at(i, tempcolor);
}
pixels.sync();
#endif

}
#endif

from fx-saberos.

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.