Hello there.
So I got my self a Arduino uno starter kit, sins i have wanted to get in to electronics forever,
and I have started to hack stuff like u are suppose to, but now I got some problems that I
don't know how to solve.
I have narrowed it down to this circuit, I got a Piezo to create some noise and a LED where the brightness is controlled
by analogWrite. The problem is, that the diode only make a few blinks or don't emit light at all, but
when i comment out the Piezo code, the led is working as expected.
I sorry for my crude circuit drawing skills 
const int ledPin = 11;
const int speakerPin = 4;
int ledBrigthness = 250;
int pitch = 50;
void setup() {
pinMode(ledPin, OUTPUT);
pinMode(speakerPin, OUTPUT);
Serial.begin(9600);
}
void loop() {
setBrightness();
setPitch();
}
void setBrightness() {
analogWrite(ledPin, ledBrigthness);
}
void setPitch () {
tone(speakerPin, pitch, 1000);
}


