Making Magic 8Ball triggered by motion, but lights up LEDs instead of LCD Screen

Hi !
I am a student currently working on a project where I want to combine Liquid Crystal and Blink codes. So when shaken, the "switch" triggers an LED to light up for a few seconds to signify the answer (red-no, green-yes, yellow-maybe). I am totally new to the Arduino world and would really love to make this work!
Help please?

What have you written so far ?

I've tried working with the SwitchCase2 prewritten code because it works with the switches and "if" statements with LEDs, but that is the closest I've come. I want to use the Bilt Ball Switch for the motion sensor but I'm unsure how to add it.

Post what you tried so far and explain what it does/doesn't do

What exactly is a Bilt Ball Switch - can you provide a link to it ?

I am using the programmed code for Switch case 2

  1. It isn't even working for the regular program with the lights. I have the set up all right, I have tried entering the "case" in the Serial Monitor and it wont work. Nothing happens.
  2. Tilt* Ball Switch
    Tilt ball switch : ID 173 : $2.00 : Adafruit Industries, Unique & fun DIY electronics and kits
/*
  Switch statement with serial input

  Demonstrates the use of a switch statement. The switch statement allows you
  to choose from among a set of discrete values of a variable. It's like a
  series of if statements.

  To see this sketch in action, open the Serial monitor and send any character.
  The characters a, b, c, d, and e, will turn on LEDs. Any other character will
  turn the LEDs off.

  The circuit:
  - five LEDs attached to digital pins 2 through 6 through 220 ohm resistors

  created 1 Jul 2009
  by Tom Igoe

  This example code is in the public domain.

  http://www.arduino.cc/en/Tutorial/SwitchCase2
*/

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
    // example, 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);
        }
    }
  }
}

It isn't even working for the regular program with the lights. I have the set up all right, I have tried entering the "case" in the Serial Monitor and it wont work. Nothing happens.

What have you got the Line ending set to in the Serial monitor ? If it is anything other than "No line ending" then the character that you enter will be followed by line ending characters that will turn off the LEDs because they match none of the cases