help with my code!

Good afternoon,

I’m a complete newby to this coding and electronics stuff, so here goes.
I’ve been trying to get my sketch to control a single LED with only two inputs.
Input one is from a 555 timer with the idea to work as a auto resetting tilt switch man down
Input two is the button that can control LED outputs

upon verifying i get this message
"request for member ‘pressCount’ in 2, which of of non-class type ‘int’
this is the code so far.

heres the sketch

// this code is to control the brightness of 10Watt 12volt LED
// a 555 signal input to pin 1 to activate the SOS mode which overrides pin 5
// on button press 1,2,3 brightness changes
// press hold < 1000 to reset SOS mode
// long press hold > 1500 to turn off unit.

#include <Button.h>

#define SOSsignal 1 // define pin 1 for SOS input signal from 555 pulse
#define Switch 2 // define switch input to pin 2 controls led inteserty
#define LEDlow 3 // define low LED power to pin 3
#define LEDmed 4 // define med LED power to pin 4
#define LEDhigh 5 // define high LED power to pin 5

void setup() {
pinMode(1,INPUT); // sets SOSsignal as an input
pinMode(2,INPUT); // sets SWITCH as an inout
pinMode(3,OUTPUT); // sets LEDlow as an output
pinMode(4,OUTPUT); // sets LEDmed as an output
pinMode(5,OUTPUT); // sets LEDhigh as an output

}
byte pressCount = 0;

void loop() {

if (Switch.pressCount())
pressCount++;

Switch(pressCount)
{case 1:
digitalWrite(3,HIGH);
digitalWrite(4,5,LOW);
break;
case 2:
digitalWrite(4,HIGH);
digitalWrite(3,5,LOW);
break;
case 3:
digitalWrite(5,HIGH);
digitalWrite(3,4,LOW);
pressCount = 0
break;
}

}

if (Switch.pressCount())

The compiler sees this, after the preprocessor is done, as

if (2.pressCount())

which makes no sense. The value 2 does not have any members. It is not a class instance.

What ARE you trying to do here?

Also, C is case-sensitive, so:

       Switch(pressCount)
        {case 1: 
          digitalWrite(3,HIGH);
          digitalWrite(4,5,LOW);
         break;

isn't going to work either. You need to change it to:

       switch(pressCount)          // Note lowercase 's'
        {case 1: 
          digitalWrite(3,HIGH);
          digitalWrite(4,5,LOW);
         break;

along with the other issues.