The Digisparks board has a bootloader built in. When programming it---using the Arduino IDE and a USB socket, which the little board plugs into---the bootloader waits to deter,mine if a new program is coming soon. If not, it starts running the code already programmed, and if it detects a new upload, it loads that over the USB connection.popopo wrote:The Attiny takes more than 10 seconds (with my board Digispark or direct powered) to start the sound, not usable at all, in 10 seconds the microdrives has finished the reading, so led activity.
For best results, use a plain old ATtiny85 and program it using an ICSP device and not any bootloaders. Even the full sized Arduino boards like the Uno R3, with bootloaders running in the ATmega328P chips, check at startup for incoming code and if not detected, run the current code in Flash RAM.
I suspect that your Digispark is being powered up when the microdrive is accessed, leading to a "wait for incoming code" every time.
HTH
Cheers,
Norm.