About this deal
x; upgrading the bootloader allows taking advantage of the benefits described in the Micronucleus README: mainly a significantly compact size. It puts the processor in quiescent mode and uses Pin 0 (PB0) to resume from sleep (other pins can be added: PB0=PCINT0, PB1=PCINT1, PB2=PCINT2, PB3=PCINT3, PB4=PCINT4, PB5=PCINT5). In case the Digispark freezes with no possibility to perform any upload, the micronucleus has to be flashed again.
This is an ATtiny85 based microcontroller development board the comes equipped with a USB interface allowing of easy connection and development of small plug and play devices.I made a simple test sketch to make my ATTiny85 emulate a Keyboard and send a sequence of keystrokes.
From the top menu of the Arduino IDE application, select File → Preferences to open the Preferences dialog box.
DigiCDC, based on the V-USB project, needs appropriate Windows PC driver; it uses a software interrupt and needs no other timers or interrupts to be enabled in parallel to correctly work. In addition to the 3 other pins on the board that can be used for an external power supply, the ATTiny85 supports full SPI and I2c interfaces. Anyway, at the moment of writing the easiest and most updated repository for the Digispark appears DigistumpArduino by ArminJo.