Comments (7)
I cannot replicate this error. Can you post the error text?
from holiday_leds_2.0.
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.
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.
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.
Here it is
from holiday_leds_2.0.
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.
Fire is now fixed and working on all zones.
from holiday_leds_2.0.
Related Issues (20)
- Enhancement: WiFi Host Name HOT 2
- No OTA on NodeMCU (ESP8266MOD) with HL2.0? HOT 3
- Individual Zone Control HOT 2
- [MQTT_CLIENT_ID]/ColorPower not found it on sketch HOT 1
- Spooky Eyes Going to Fast HOT 1
- Not sure this is an issue but a question APA102 lights HOT 1
- Traditional Looking Lights HOT 1
- Need More Colors HOT 5
- Get constant connecting when already connected
- miss-mash of control across multiple esp8266's
- Issues compiling esp8266 code HOT 1
- random leds go off
- Power Consumption Chart Seems Wrong HOT 4
- 24V Pixel Strip options
- Bad gramer in Quick Reference Sheet
- Add Static IP for Wifi. HOT 3
- Allow for custom ESP pin definition. HOT 6
- Random LED flashing HOT 23
- Confused about BPM Setup HOT 2
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 holiday_leds_2.0.