Programming ATtiny85 with ArduinoISP



Download the Tiny-core here: 

Follow the instructions in the readme.txt file

Connect your Arduino to the Attiny according to the picture above

Note: this step do not burn a bootloader to your chip, it is only used to set the fuses to another clock-speed.



PWM pins are PB0, PB1 and PB4
Example: analogWrite(4,127); Pwm on pin PB4, 50% duty cycle

Analog (ADC) pins are PB2 (A1), PB4 (A2) and PB3 (A3) (physical 7,3 and 2)
Example: val=analogRead(2); Reads ADC value on pin PB4


Useful links for Atiny85:
Coding Badly's TinyISP reply #33
Coding Badly's TinyTuner
Coding Badly's TinyTuner2
Servo library for attiny85