Digispark ATtiny85 pinout

Digispark (ATtiny85, USB-A on the board), ATtiny85, 5 V logic, 26.5×19 mm, 9 pins

verified15.10.2026

Which Digispark ATtiny85 pins are safe to use

Free to use

P0, P2, P5

Use with care

  • P1: onboard LED.
  • P3, P4: USB lines: use them and you lose USB flashing and the serial port.

Important

  • Flashing: click "Upload" first, then plug the board into USB. The micronucleus bootloader waits 5 seconds after power-up, then runs the sketch. Needs the Digistump driver (Windows) and the Digistump AVR board package.
  • P3 and P4 are the USB lines (D- and D+): with 3.6 V zeners and a 1.5 kΩ pull-up on P3. Anything connected to them interferes with flashing and distorts the signals.
  • LED on P1 (rev2, rev4) or on P0 (unmarked board).
  • On clones P5 often stays RESET. On the original it is a weak pin with a high level of about 3 V.
  • No hardware UART; I2C and SPI via USI (SDA P0, SCL P2, SCK P2). analogRead numbers: P2 = 1, P4 = 2, P3 = 3, P5 = 0.
  • About 6 KB of the 8 KB flash is free, 512 bytes of RAM.
  • 78M05 regulator up to 500 mA. ATtiny85 pin current up to 20 mA.

Revisions and clones

  • Original Digistump: rev2 and rev4. Digistump never made boards marked "rev3" (clones), functionally the same.
  • Clones (usually blue): LED on P0 or P1, RESET fuse not disabled, sometimes a different regulator.
  • Digispark Pro (ATtiny167, micro-USB) is a different board with a different pinout.

All pins

LabelNumberFunctionsLimitsCheck
P5PB5, Arduino 5 (A0)ADC0 (analogRead(0))RESET (until the RSTDISBL fuse is set)debugWIRE (dW)PCINT5 (pin change interrupt)verified
P4PB4, Arduino 4 (A2)ADC2 (analogRead(2))USB D+ (software V-USB)PWM OC1B (Timer1)XTAL2 / CLKOPCINT4 (pin change interrupt)USB lineverified
P3PB3, Arduino 3 (A3)ADC3 (analogRead(3))USB D- (software V-USB)PWM !OC1B (inverted)XTAL1 / CLKIPCINT3 (pin change interrupt)USB lineonboard pull-upverified
P2PB2, Arduino 2 (A1)ADC1 (analogRead(1))SCL (USI)USCK (USI): SCKINT0T0 (Timer0 counter input)PCINT2 (pin change interrupt)verified
P1PB1, Arduino 1PWM OC0B / OC1ADO (USI): MISO during ISP programming, MOSI in master modeAIN1 (comparator −)PCINT1 (pin change interrupt)onboard LEDverified
P0PB0, Arduino 0PWM OC0A (Timer0)SDA (USI)DI (USI): MOSI during ISP programming, MISO in master modeAIN0 (comparator +), AREFPCINT0 (pin change interrupt)verified
5V5 Vpower inputpower outputverified
GNDGroundverified
VIN12 Vpower inputverified

Sources

Every pin is verified against the manufacturer's documents.

Size: from the Digistump Eagle file: 26.5×19.0 mm including the USB-A tab (9.0×12.03 mm).

FAQ

Which pin is the Digispark ATtiny85 LED on?
LED on P1 (on unmarked boards on P0).

You might also need

Similar boards

Next

Need firmware or a device built on Arduino? I'll build it to order