Go Down

Topic: Working with Case & Switches (Read 1 time) previous topic - next topic

chipthomas

Well I changed the orginal loop to a function and then created a new loop and added the switches and case numbers to it.  Everything complies just find with no errors.  But when I upload load, the arduino gets to the end of the void setup and then stops.  It doesn't seem to get into the void loop.

I even tried adding a "default" thinking it might would use that, but it doesn't.

Any suggestions?

Chipper

I have attached the new code.

michinyon

Your program looks ridiculously complicated.

How do you actually "know"  that it never makes it into the loop() function ?

chipthomas


Your program looks ridiculously complicated.

How do you actually "know"  that it never makes it into the loop() function ?


Well, it would get to a certin point and then stop.  I knew exactly where it was stopping at. 

I later discovered that I had a "void" in the case section and that was what was making it stop.  After removing the void, it worked great!!

Now on to do the rest of the code.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy