TeensyTreeDan
Member
Help again! Tried lots of things. Got rid of all compile warnings and narrowed the problem down to 4 lines of code plus 3 to get rid of a do while loop (line inside loop ok) If these 7 lines are commented out then firework subs work fine. If any ONE of the 4 lines or the do while loop is uncommented then I get the erratic firework behavior with eventual hang (which behavior always occurs exactly the same no matter which line is uncommented). Also, if I copy and paste ONE of these 4 lines into another subroutine, it will cause the same problem until commented out. Don't know if this is significant, but each of the 4 lines contain variables that are unsigned long variables, while lines among and after these 4 lines do not! I did try moving rain variable declarations to within the rain sub, but still same problem. I was thinking of trying the Arduino Pro IDE which looks like it has an easy interface to work with for debugging. I think it is still beta, any thoughts on it? I've attached a new copy of the sketch with the lines commented out in the rain subroutine. Again, anytime you can spare to help me is much, much appreciated!!