Code Monkey home page Code Monkey logo

Comments (7)

thehookup avatar thehookup commented on June 26, 2024

I cannot replicate this error. Can you post the error text?

from holiday_leds_2.0.

dpackham avatar dpackham commented on June 26, 2024

Set both to 0

#if FIRSTZONE_SECTIONS >= 1
#define ZONEONE_SECTION1_START 1 //starting LED for this zone
#define ZONEONE_SECTION1_END 50 //ending LED for this zone
#define ZONEONE_SECTION1_START_FIRE 0 //would you like fire to begin from this point? 0 = no 1 = yes
#define ZONEONE_SECTION1_END_FIRE 0 //would you like fire to begin from this point? 0 = no 1 = yes
#endif

Error

G:\My Drive\Documents\My Code\HolidayLights2.0\HolidayLights2.1\HolidayLights2.1.ino: In function 'void fire_firstZone_SECTION1()':

HolidayLights2.1:2324:3: error: expected primary-expression before '}' token

}

^

HolidayLights2.1:2324:3: error: expected ';' before '}' token

exit status 1
expected primary-expression before '}' token

from holiday_leds_2.0.

dpackham avatar dpackham commented on June 26, 2024

I have a HIP that I won't fire at the peak and in the 3rd zone its flat so I don't want any fire at all.
Zone One
start 0
end 1
Zone two
start 1
end 0
Zone three
start 0
end 0

from holiday_leds_2.0.

thehookup avatar thehookup commented on June 26, 2024

Yeah, I'm aware that the fire is still a bit buggy, but it shouldn't cause compiler errors. That error indicates that there is a missing semicolon somewhere, does a particular line of code turn red (highlighted) when that error pops up?

from holiday_leds_2.0.

dpackham avatar dpackham commented on June 26, 2024

Here it is

image

from holiday_leds_2.0.

parkvvest avatar parkvvest commented on June 26, 2024

I was having an issue with the Fire effect. I have two zones on my roof line and wanted fire to work at the beginning and end of both zones. Zone 1 worked with no problems, but zone 2 only displayed fire at the end of the zone and only the first pixel would light up at the beginning of the zone. I went through the code to see if there were any significant differences between Zone 1 Section 1 code and Zone 2 Section 1 code.

I'm not savvy enough to completely understand everything going on in this fire code, but I did find an if statement that was different. Once I made the the change to the Zone 2 Section 1 code to essentially do the same thing as Zone 1 Section 1 is doing, it appears to have resolved the issue. My hunch is that this probably needs to be changed for every zone, but since right now I'm only utilizing 2 zones, I can't verify this.

Here is what I changed. Hope it helps others out.

int thisFlame = ((pixelnumber * firesize)/100);
if(thisFlame <= ZONETWO_SECTION1_END - ZONETWO_SECTION1_START ) /* Edited from original if(thisFlame <= ZONETWO_SECTION1_START && thisFlame <= ZONETWO_SECTION1_END)*/

from holiday_leds_2.0.

thehookup avatar thehookup commented on June 26, 2024

Fire is now fixed and working on all zones.

from holiday_leds_2.0.

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.