(deleted)
Is that just a rant or can we help you figure it out? Post the code and errors and maybe we can point you in the right direction.
I expect you're doing something wrong but I'm not a mind reader. Show us some code and the associated error messages. Or if you don't want to do that then I hope your rant made you feel better.
Steve
Twice recently I had that exact same symptom, and had accidentally stuck my globals in setup().
(deleted)
sketch_may15a.ino (5.88 KB)
First issue is a typo. You declared a variable called bigclac_5 which I doubt was your intention.
Second is a scoping error - trying to use usecount outside of where it was declared.
Stopped looking after that.
wildbill:
First issue is a typo. You declared a variable called bigclac_5 which I doubt was your intention.Second is a scoping error - trying to use usecount outside of where it was declared.
Stopped looking after that.
I stopped looking after the typo.
I'm surprised it's taken OP since may 15th ![]()
(deleted)
You are using both bigcalc_5 and bigclac_5 but only declared one of them. Look closely at the spelling - which is it?
Try compile this, which is what you're doing, with the declare in a {}
void setup()
{
}
void loop()
{
{
int usecount;
}
usecount=10;
}
exit status 1
'usecount' was not declared in this scope
(deleted)
Here is a tutorial about scope that may clear some things up.
Treat it as a learning moment - many people new to programming have blamed the compiler for their issues and while it almost certainly has bugs, you're very very unlikely to have found one - just think about how many other folks have used it successfully.
(deleted)
edit:Is there a mark as solved function somewhere?
You can edit the title of your post to add Solved.
Leonhard_Saam:
Sry that I was so angry, but I used up like 2 hours on it straigt and my teacher also looked very carefully, like me.
Oh, Booo Hooo. Wait until you’ve spent a week of 12-hour days trying to find an elusive code bug. And, it’s your job. And, there’s a looming project deadline. And, the boss is asking for updates every hour.
OP should post his code inline with CODE TAGS
I can’t see his code, and won’t try to help until he does...
I’m reading on a tablet, and can’t see his ino file.
Maybe a lesson to be learned here...!
Leonhard_Saam:
Sry that I was so angry, but I used up like 2 hours on it straigt and my teacher also looked very carefully, like me. I think I'm gonna mark this one as solved
edit:Is there a mark as solved function somewhere?
You're not the first and you won't be the last. It's termed "A character forming experience".
This is a quote from the late Sir Maurice Wilkes, one of the founders of computing at Cambridge University:-
By June 1949 people had begun to realize that it was not so easy to get programs right as at one time appeared. I well remember when this realization first came on me with full force.
The EDSAC was on the top floor of the building and the tape-punching and editing equipment one floor below. [...] It was on one of my journeys between the EDSAC room and the punching equipment that "hesitating at the angles of stairs" the realization came over me with full force that a good part of the remainder of my life was going to be spent in finding errors in my own programs.
Ian
If de-bugging is the act of taking errors out of programs, programming must be the act of putting the errors in...
lastchancename:
I’m reading on a tablet, and can’t see his ino file.
Maybe a lesson to be learned here...!
Indeed: move away from tablets?