Wow whats this error ting? Im scared.
So I have never had this error code.
My code is this:
float C1 =32.703;
float CS1= 1.05946309436C1;
float D1= 1.05946309436CS1;
float DS1= 1.05946309436D1;
float E1= 1.05946309436DS1;
float F1= 1.05946309436E1;
float FS1= 1.05946309436F1;
float G1= 1.05946309436FS1;
float GS1= 1.05946309436G1;
float a1= 1.05946309436GS1;
float B1= 1.05946309436A1;
float H1= 1.05946309436*B1;
int potPin=A3;
int bp=8;
int bpm =140;
float dotQuart=60./bpm * 1000.*1.5;
float quart=60./bpm * 1000.;
float staccQuart=60./bpm/2. * 1000.;
float dotEight=30./bpm * 1000.*1.5;
float eight=30./bpm * 1000.;
float staccEight=30./bpm/2. * 1000.;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(bp,OUTPUT);
pinMode(potPin,INPUT);
}
void loop() {
Serial.println("");
Serial.print("1/4");
Serial.print("\t\t\t\t");
Serial.println("1/8");
Serial.print(dotQuart);
Serial.print("\t");
Serial.print(quart);
Serial.print("\t");
Serial.print(staccQuart);
Serial.print("\t\t");
Serial.print(dotEight);
Serial.print("\t");
Serial.print(eight);
Serial.print("\t");
Serial.println(staccEight);
tone(bp,F1,staccQuart);
delay(quart);
tone(bp,B1,dotQuart);
delay(dotQuart);
}
And the error code is here:
avrdude: ser_open(): can't open device "\.\COM4": Semaphore timeout expired.
Failed uploading: uploading error: exit status 1
hmm
1 Reply
argghh
I put a code with just void setup and void loop and the same thing happened
I
had the wrong board int the IDE
thanks for help