Stewart, I ordered one of those boards and a chip to try it out with (selected the 'all above' option from that Ebay seller). The chip didn't come pre-programmed with the Digispark bootloader, though it could still be programmed using a USBASP. This means that anyone who gets the board and chip like I did will find it completely useless unless they already have, or subsequently buy a separate programming device. If you need a programming device the USBASP is cheap and common (just two or three dollars on Ebay). You can also use another Arduino, such as a UNO or NANO as a programming device, but that is more hassle than using a USBASP.
For anyone who's interested here are the details of how to burn the Digispark bootloader to the chip using a USBASP - once that's done the chip can then be programmed via the board's USB connector linked back to a PC without using any other programming device.
The 8-pin (4x2) row of connectors contains at one end the usual 6-pin version of the Arduino ICSP connector - the one that's present on UNO and NANO Arduinos - and you may have a 6-pin connector from your USBASP that will connect to that. But if you want to use it, don't solder in an 4x2 header or the usual connector will foul on the last two pins. Fit a 3x2 header and leave the last two holes (labelled P3 P4) empty - or fit those two pins on the reverse side.
Once you've hooked up your USBASP, this is the command to burn the bootloader and set the fuses. This way doesn't allow you to use P5 (Reset) as an I/O pin. If you want to do that you set the fuses differently - but beware if you do that, you can't undo it (as far as I know) with a USBASP - you need a high voltage programmer. Using the values I give here, you can go back to using the chip without the bootloader, if and when you wish.
Code: Select all
avrdude -c usbasp -p t85 -U flash:w:micronucleus-1.06.hex -U lfuse:w:0xE1:m -U hfuse:w:0xDD:m -U efuse:w:0xFE:m
This uses the older 1.06 (also known as 1.6) version of the bootloader - this is the one that pre-programmed chips tend to come with. You can get a newer 2.04 version - look for micronucleus on github - but, at the time of writing, this isn't compatible with the default Arduino IDE set-up.
I've attached the hex file you need to burn the bootloader as described above.