attiny85, tone with PWM

I'm using ATtiny core downloaded at Google Code Archive - Long-term storage for Google Code Project Hosting.. I burned bootloader(8MHz) at ATtiny85. I checked each pin is working well(led-PB0,PB4/piezo-PB3) but if I upload the sketch using 'tone()' with 'analogWrite()' they are not working well. led on PB0 is not fading (led on PB4 is fading normally). How can I solve this problem. It looks PB0 and PB3 are interrupting each other.

Not many functions work as a direct port to attiny85.

Ones that do:

pinMode()
digitalWrite()
digitalRead()
analogRead()
analogWrite()
shiftOut()
pulseIn()
millis()
micros()
delay()
delayMicroseconds()
SoftwareSerial

If the library tries to use anything other than those...it may not work.

Also, running 2 LEDs and a piezo off a chip with a 200ma max output seems a bit like too much load.

Check your connections. Attiny85 only has 2 PWM pins anyway...

Oh and just write your own code for this...

analogWrite(pin,1-255)....

Thanks for your advice.

I just used code on 'Fading' example and added a line 'tone(buzzer, 1023, 200);'. As I know tone library and more PWM pins(PB0, PB1, PB4) are available by burning that bootloader. I tested each PWM pins are well connected with fading example and tone library is also working well. It makes trouble when I use additional PWM pin and tone library at the same time.