The ATtiny85 uses pins 5 and 6 for I2C and PWM. Does this mean that I can only do one or the other?
I'd like to use the ATtiny85 as an I2C master and have two PWM pins at the same time. Is it possible?
The ATtiny85 uses pins 5 and 6 for I2C and PWM. Does this mean that I can only do one or the other?
I'd like to use the ATtiny85 as an I2C master and have two PWM pins at the same time. Is it possible?
Hi,
Depends how accurate you need the PWM to be - you could use software PWM on PB3 & PB4. What is at the end of your PWM signal?
Geoff
I need the brightness of the LEDs to correspond with certain values to give a visual indication of what they are without being connected to a computer, so they'll do some fading.
Thanks, software PWM seems to be the answer to this. 8)
You could use the Digispark core and get 3 PWM hardware pins:
Hardware&Software PWM
IntroductionThe Digispark -based on the ATtiny85 microcontroller- has 4 built-in hardware PWM. Currently, only 3 of them are usable in the arduino environment:
Pin0
Pin1
Pin4
http://digistump.com/wiki/digispark/tricks
I have verified that this works. Trinket core will only give 2.
Ray