Valentine's Day, LED flashing picture frame

I’m relatively new to programming and arduinos, but i’d like to make a picture frame for my girlfriend that blinks LEDs in the shape of a heart behind a photo, in a picture frame. I would like the LEDs to blink; first, like a heartbeat, then (at the turn of a potentiometer) fade the LEDs. Whenever I try to run the program, it only turns on the LED, rather than allowing me to change whether its a heartbeat or it fades.
I’m a script kiddie who is extremely new to this, this so please use the most basic of terms.

Thanks for the help



int potPin = A0;
int led = 9;
int fadeAmount = 5;
int lastPotValue;
int brightness = 0;

void setup()

pinMode(potPin, INPUT);
pinMode(led, OUTPUT);


void loop(){
int potValue = analogRead(potPin) / 255;

if(potValue !=lastPotValue)
case 0:
// set the brightness of pin 9:

analogWrite(led, 255); // changing the volatage level… before this, you had a really weird script from the arduino website
delay(200); // waits a sec
analogWrite(led, 50); //fades the led
digitalWrite(led, HIGH) /*turn led on HIGH (voltage level) MAKE SURE “HIGH” IS
IN CAPS NEXT TIME. the last script you wrote didnt have “HIGH” in caps, and it
wouldn’t work */
{for(int fadeAmount = 255; fadeAmount >= 0; fadeAmount -=5);}
//fades the LED
{ analogWrite(led, fadeAmount);
case 1:
// the loop routine runs over and over again forever:
// set the brightness of pin 9:
analogWrite(led, brightness);

// change the brightness for next time through the loop:
brightness = brightness + fadeAmount;

// reverse the direction of the fading at the ends of the fade:
if (brightness <= 0 || brightness >= 255) {
fadeAmount = -fadeAmount;
// wait for 30 milliseconds to see the dimming effect