This is relevant for ATTiny85 chips in this configuration
We bought these cheap amazon digispark boards:
https://www.amazon.com/gp/product/B07FCHFB85/ref=ox_sc_act_title_1?smid=AYZI0TO4JGBW9&psc=1
They come without bootloader. They must be manually programmed with a bootloader.
Use the bootloader micronucleus:
https://github.com/micronucleus/micronucleus
Use version v1.11, all other versions don't work
It must be flashed with an external AVR ISP
Connect to your ISP like this:
VTG -> VIN
GND -> GND
MOSI -> MOSI
MISO -> MISO
SCLK -> SCLK
RST -> RESET (PB5)
We use this AVR programmer:
Connect accordingly
Use avrdude to flash
make CONFIG=t85_default flash
avrdude -c avrisp -P /dev/ttyUSB0 -p attiny85 -U flash:w:main.hex:i -B 10
In Arduino IDE 2.0, search for a module with digispark and install it. In board, select "Digispark 16MHz"
To check that the digispark is working properly, we can use two examples.
In the Arduino examples folder, look for a file named Blink.