ATtiny 4 PWM Board Lib

Hi group,

ist there a Board Lib supporting all 4 Hardware PWMs of the ATtiny 85, the ones I found seems to know only two.

I've red the ATtiny Spec and there seems to be 2 PWMs for each of the 2 timers.

May be one timer is needed for other arduiono timing?

Or what is a good start for hacking myself, be able to programm atmel, but may be there is a common solution allready.

Like to avoid software solution - other threads running.

While the t85 does have support for four PWM outputs one of them is inverted which makes it not very useful in the Arduino world.

The core available from here...
http://code.google.com/p/arduino-tiny/
...has support for three PWM outputs on the t85 processor. The inverted output is not supported.

I only need 3 anyway (RGB) so this is fine for me - Thank You.
BTW what does inverted mean? One PWM with two inverted Outputs, so 3 at all?
Can't the PWM be configured any way I like?
I have a LED with common Vdd and the colors need to be switched to ground or not.
The LED was part of an Arduino Uno Kit with some little alike stuff added.

I've read the datasheet again and it looks like Timer 0 has two pwms
and Timer1 also, has 2 inverted pins per pwm so 4 overall, but seems to be configurable having one pin connected also.
Honestly the Datasheet is very hard to read, I can't figure out which pwm is connected to which pin there is a lot of COMnx and similar but can't find a table for n x and the coresponding pins.

iwlf:
BTW what does inverted mean?

/OC1B (OC1B with a bar over it) is the output in question. It's on PB3. When OC1B is set high then /OC1B is set low and vice versa. /OC1B is always OC1B inverted. There is no other way to control it.

One PWM with two inverted Outputs, so 3 at all?

There are two inverted outputs and four primary outputs. Two primary outputs overlap on PB1. A primary output and an inverted output overlap on PB0.

I have a LED with common Vdd and the colors need to be switched to ground or not.

The output will be inverted (0 = full on; 255 = full off; 250 = dim) but it will otherwise work fine.

iwlf:
I've read the datasheet again and it looks like Timer 0 has two pwms

Correct.

and Timer1 also, has 2 inverted pins per pwm so 4 overall,

Correct.

but seems to be configurable having one pin connected also.

I don't understand.

Honestly the Datasheet is very hard to read, I can't figure out which pwm is connected to which pin

1. Pin Configurations ... page 2.

Pins labeled with "OC" (Output Compare) are PWM pins. Pins labeled with bar over the "OC" are inverted PWM pins.

OK I see the Pin assignment is Not to Smart.
PWM0B and PWM0A are the same Pins then PWM1A and PWM1A inverted.
So you can have only PWM0A,0B,1B at the same Time.
But enough for RGB.