Serial monitor input

Can someone tell me how to change this code so that instead of the input being a,b,c,d I want it to be 1,2,4,8,32 i.e. if I put 1 into the serial monitor and push enter, then one of the digital outputs activate. In the code, if I change the ‘a’ to 1, it does not work.
Thanks heaps.

void setup() {
// initialize serial communication:
Serial.begin(9600);
// initialize the LED pins:
for (int thisPin = 2; thisPin < 7; thisPin++) {
pinMode(thisPin, OUTPUT);
}
}

void loop() {
// read the sensor:
if (Serial.available() > 0) {
int inByte = Serial.read();
// do something different depending on the character received.
// The switch statement expects single number values for each case;
// in this exmaple, though, you’re using single quotes to tell
// the controller to get the ASCII value for the character. For
// example ‘a’ = 97, ‘b’ = 98, and so forth:

switch (inByte) {
case ‘a’:
digitalWrite(2, HIGH);
break;
case ‘b’:
digitalWrite(3, HIGH);
break;
case ‘c’:
digitalWrite(4, HIGH);
break;
case ‘d’:
digitalWrite(5, HIGH);
break;
case ‘e’:
digitalWrite(6, HIGH);
break;
default:
// turn all the LEDs off:
for (int thisPin = 2; thisPin < 7; thisPin++) {
digitalWrite(thisPin, LOW);
}
}
}
}

In the code, if I change the 'a' to 1, it does not work

What happens if you change it to '1'?

Hi, when I put 1 instead of 'a', it just does not work. I think this is because DEC lowest is 33. Anyone has any advice on this? Thanks.

Hi, when I put 1 instead of 'a', it just does not work.

Read my post carefully - I didn't say 1, I said '1'.