Hey guys!
I've gone through the Digispark Arduino software and fixed tons of bugs - I've fixed millis(), micros(), and delay(), so they all work when you're using DigiUSB. I've added a new version of the micronucleus bootloader which runs the digispark at 16.5mhz regardless if you plugged it in to a USB port or an external power supply (original digisparks run at 16.0mhz when externally powered, which messes up your delays and things!). I've added an option to select 16.0, 8.0, or 1.0mhz as clock speed options in the Tools > Boards menu - save power, and use a clock speed which is compatible with more existing arduino libraries! I've hooked up the Burn Bootloader menu item so it uploads the latest and greatest digispark bootloader to your current digispark, upgrading it in place, or if you select a programmer in the programmers menu it will install the digispark bootloader in to a raw attiny85 chip, giving it a USB upload interface and the ability to use the reset pin!
The upload tool now automatically detects "-1" erase failures on Mac OS and recovers the connection, continuing the upload immediately - so much less annoying!
I've also added a new function to the DigiUSB library: DigiUSB.delay(); It works exactly the same as the regular global delay() function, but it keeps refreshing the DigiUSB library while it delays, so your connection to your computer doesn't crash. If you toss a few DigiUSB.delay() in to your program you can completely do without DigiUSB.refresh().
All of these changes are up on github, and will hopefully be merged in to the main Digispark Arduino software in the future, but I'm finding these bugfixes so useful (especially the DigiUSB ones!) that I wanted to share them with you sooner than later.
You can download my upgraded Digispark Arduino app from
http://creativepony.com/seadawg/Bluebiespark%20Beta%202.zip for 64bit Intel Mac computers. Let me know what you think, if you find bugs, etc.
To upgrade the bootloader on your digispark for the clock speed fix:Open Tools menu, make sure programmer is set to Digispark, then choose Burn Bootloader. Now plug in your digispark and wait. After about ten seconds or so a bunch of upload status stuff will come out the bottom - if the upload succeeded, wait another ten seconds or so - now try uploading to your digispark. It should now have the upload speed fix. You can verify the bootloader upgraded by opening "System Information" app from /Applications/Utilities, going to the usb section, plugging in your digispark and typing cmd+r to refresh. Keep refreshing till "Vendor-Specific Device" appears in the list. Click this - if the Version is 1.02, it's the old bootloader the digispark shipped with. If it upgraded the version will now be 1.06.
A word of warning:I am not affiliated with Digistump and provide no warranty that the bootloader upgrade will not impair the functionality of your digispark. I'm quite confident it wont cause any trouble, but no promises and no legal obligations. Digistump wont replace your digispark if it stops working because of a bootloader upgrade. If you're unsure, ask Digistump for advice.
Edit: Updated with info on beta 2, which fixes more stuff!