Code Help

i am making a Bluetooth object finder for school and i was wondering if anyone could help with the code

#include <SoftwareSerial.h>

char val;

int buzzer = 2;// Borne de sortie buzzer connectée sur le attiny 85

void setup() {

//Serial.begin(9600);

serieBT.begin(9600);

pinMode(buzzer,OUTPUT); }

void loop() {

if (serieBT.available()) {

val = serieBT.read();

Serial.print(val); // on ecrit la valeur

switch (val) {

case '3' : digitalWrite(buzzer, HIGH);

delay(500);

digitalWrite(buzzer, LOW);

delay(500);

digitalWrite(buzzer, HIGH);

delay(500);

digitalWrite(buzzer, LOW);

delay(500);

digitalWrite(buzzer, HIGH);

delay(500);

digitalWrite(buzzer, LOW);

break;

} } }

Can we expect a question?

Can we expect code tags?

Please use code tags (</> button on the toolbar) when you post code or warning/error messages. The reason is that the forum software can interpret parts of your code as markup, leading to confusion, wasted time, and a reduced chance for you to get help with your problem. This will also make it easier to read your code and to copy it to the IDE or editor. If your browser doesn't show the posting toolbar then you can just manually add the code tags:
[code]``[color=blue]// your code is here[/color]``[/code]
Using code tags and other important information is explained in the How to use this forum post. Please read it.

Please always do a Tools > Auto Format on your code before posting it. This will make it easier for you to spot bugs and make it easier for us to read. If you're using the Arduino Web Editor you will not have access to this useful tool but it's still unacceptable to post poorly formatted code. I recommend you to use the standard IDE instead.

Please remove unnecessary blank lines from your code before posting to the forum. One or two to separate code into logical sections is fine but large spaces for no reason or random blank lines just make for more scrolling when we're trying to read your code. Do not post double spaced code!!!

Well I can tell you it won't compile if that helps. And that you need to decide whether you're using Serial or Software Serial.

Steve

What help do you need? Is serieBT defined anywhere?