ok tell me whats up with this

if (digitalRead(Button) == HIGH)
  {
  Mode == 1;
  }
  delay(10);  
  if (digitalRead(Button) == LOW)
  {
  Mode == 0;
  }

switch (Mode)
     {
       selectLineTwo();
     case 0: Serial.print("lol");
     selectLineTwo();
     case 1:Serial.print("noob");
     }

my LCD prints other stuff its not that

my button is wired in correctly

what happens is it just displays noob all the time

what i want it to do is just when i press it, it displays something, when i press it again it no longer displays it

go on laugh at me ;D

please give me a clue

Well for starters, your case statements need corresponding breaks.

Have a look at this: http://www-numi.fnal.gov/offline_software/srt_public_context/WebDocs/Companion/cxx_crib/switch.html

Mode == 1 and Mode == 0 is just CHECKING that the mode is this or that. It doesn’t actually change the value.

Unless I’m not seeing something, changing it from == to = should solve your problem.

I may be wrong. Try it.

I don’t understand the selectlinetwo… i might not need to.
and you need “breaks;”

:smiley: Hope it works! (we won’t laugh at you)

all up and working now :)

needed a break and only 1 =

cheers fellas ;D

Could you post your revised code that solves your problem?