Thanks for your help. I still haven't confirmed it works because I need to do some soldering. However, I have good indications:
So, how did I do it (from my linux box - I'm too techie for windows and too poor for Mac
)?
First, cloned your git repository.
Then, compiled. It worked at first time!
The result is the "main.hex" file.
Then, I followed this digispark tutorial that teaches how to add digispark support t Arduino IDE.
(https://digistump.com/wiki/digispark/tu … connecting)
This installs micronucleus in so it can be used to upload to Digispark.
I had to search for it, in my case it was in "/home/user/.arduino15/packages/digistump/tools/micronucleus/2.0a4".
After finding it, it was just a matter of copping all the files to the same directory and run:
sudo ./micronucleus --run --dump-progress --type intel-hex main.hex
{status:"waiting",step:1,steps:6,progress:0.500000}
> Please plug in the device ...
> Press CTRL+C to terminate the program.
> Device is found!
{status:"connecting",step:2,steps:6,progress:0.000000}
{status:"connecting",step:2,steps:6,progress:0.180000}
{status:"connecting",step:2,steps:6,progress:0.360000}
{status:"connecting",step:2,steps:6,progress:0.540000}
{status:"connecting",step:2,steps:6,progress:0.720000}
{status:"connecting",step:2,steps:6,progress:1.000000}
> Device has firmware version 1.6
> Available space for user applications: 6012 bytes
> Suggested sleep time between sending pages: 8ms
> Whole page count: 94 page size: 64
> Erase function sleep duration: 752ms
{status:"parsing",step:3,steps:6,progress:0.000000}
{status:"parsing",step:3,steps:6,progress:1.000000}
{status:"parsing",step:3,steps:6,progress:1.000000}
> Erasing the memory ...
{status:"erasing",step:4,steps:6,progress:0.000000}
{status:"erasing",step:4,steps:6,progress:0.010000}
{status:"erasing",step:4,steps:6,progress:0.020000}
{status:"erasing",step:4,steps:6,progress:0.030000}
{status:"erasing",step:4,steps:6,progress:0.040000}
{status:"erasing",step:4,steps:6,progress:0.050000}
{status:"erasing",step:4,steps:6,progress:0.060000}
{status:"erasing",step:4,steps:6,progress:0.070000}
{status:"erasing",step:4,steps:6,progress:0.080000}
{status:"erasing",step:4,steps:6,progress:0.090000}
{status:"erasing",step:4,steps:6,progress:0.100000}
{status:"erasing",step:4,steps:6,progress:0.110000}
{status:"erasing",step:4,steps:6,progress:0.120000}
{status:"erasing",step:4,steps:6,progress:0.130000}
{status:"erasing",step:4,steps:6,progress:0.140000}
{status:"erasing",step:4,steps:6,progress:0.150000}
{status:"erasing",step:4,steps:6,progress:0.160000}
{status:"erasing",step:4,steps:6,progress:0.170000}
{status:"erasing",step:4,steps:6,progress:0.180000}
{status:"erasing",step:4,steps:6,progress:0.190000}
{status:"erasing",step:4,steps:6,progress:0.200000}
{status:"erasing",step:4,steps:6,progress:0.210000}
{status:"erasing",step:4,steps:6,progress:0.220000}
{status:"erasing",step:4,steps:6,progress:0.230000}
{status:"erasing",step:4,steps:6,progress:0.240000}
{status:"erasing",step:4,steps:6,progress:0.250000}
{status:"erasing",step:4,steps:6,progress:0.260000}
{status:"erasing",step:4,steps:6,progress:0.270000}
{status:"erasing",step:4,steps:6,progress:0.280000}
{status:"erasing",step:4,steps:6,progress:0.290000}
{status:"erasing",step:4,steps:6,progress:0.300000}
{status:"erasing",step:4,steps:6,progress:0.310000}
{status:"erasing",step:4,steps:6,progress:0.320000}
{status:"erasing",step:4,steps:6,progress:0.330000}
{status:"erasing",step:4,steps:6,progress:0.340000}
{status:"erasing",step:4,steps:6,progress:0.350000}
{status:"erasing",step:4,steps:6,progress:0.360000}
{status:"erasing",step:4,steps:6,progress:0.370000}
{status:"erasing",step:4,steps:6,progress:0.380000}
{status:"erasing",step:4,steps:6,progress:0.390000}
{status:"erasing",step:4,steps:6,progress:0.400000}
{status:"erasing",step:4,steps:6,progress:0.410000}
{status:"erasing",step:4,steps:6,progress:0.420000}
{status:"erasing",step:4,steps:6,progress:0.430000}
{status:"erasing",step:4,steps:6,progress:0.440000}
{status:"erasing",step:4,steps:6,progress:0.450000}
{status:"erasing",step:4,steps:6,progress:0.460000}
{status:"erasing",step:4,steps:6,progress:0.470000}
{status:"erasing",step:4,steps:6,progress:0.480000}
{status:"erasing",step:4,steps:6,progress:0.490000}
{status:"erasing",step:4,steps:6,progress:0.500000}
{status:"erasing",step:4,steps:6,progress:0.510000}
{status:"erasing",step:4,steps:6,progress:0.520000}
{status:"erasing",step:4,steps:6,progress:0.530000}
{status:"erasing",step:4,steps:6,progress:0.540000}
{status:"erasing",step:4,steps:6,progress:0.550000}
{status:"erasing",step:4,steps:6,progress:0.560000}
{status:"erasing",step:4,steps:6,progress:0.570000}
{status:"erasing",step:4,steps:6,progress:0.580000}
{status:"erasing",step:4,steps:6,progress:0.590000}
{status:"erasing",step:4,steps:6,progress:0.600000}
{status:"erasing",step:4,steps:6,progress:0.610000}
{status:"erasing",step:4,steps:6,progress:0.620000}
{status:"erasing",step:4,steps:6,progress:0.630000}
{status:"erasing",step:4,steps:6,progress:0.640000}
{status:"erasing",step:4,steps:6,progress:0.650000}
{status:"erasing",step:4,steps:6,progress:0.660000}
{status:"erasing",step:4,steps:6,progress:0.670000}
{status:"erasing",step:4,steps:6,progress:0.680000}
{status:"erasing",step:4,steps:6,progress:0.690000}
{status:"erasing",step:4,steps:6,progress:0.700000}
{status:"erasing",step:4,steps:6,progress:0.710000}
{status:"erasing",step:4,steps:6,progress:0.720000}
{status:"erasing",step:4,steps:6,progress:0.730000}
{status:"erasing",step:4,steps:6,progress:0.740000}
{status:"erasing",step:4,steps:6,progress:0.750000}
{status:"erasing",step:4,steps:6,progress:0.760000}
{status:"erasing",step:4,steps:6,progress:0.770000}
{status:"erasing",step:4,steps:6,progress:0.780000}
{status:"erasing",step:4,steps:6,progress:0.790000}
{status:"erasing",step:4,steps:6,progress:0.800000}
{status:"erasing",step:4,steps:6,progress:0.810000}
{status:"erasing",step:4,steps:6,progress:0.820000}
{status:"erasing",step:4,steps:6,progress:0.830000}
{status:"erasing",step:4,steps:6,progress:0.839999}
{status:"erasing",step:4,steps:6,progress:0.849999}
{status:"erasing",step:4,steps:6,progress:0.859999}
{status:"erasing",step:4,steps:6,progress:0.869999}
{status:"erasing",step:4,steps:6,progress:0.879999}
{status:"erasing",step:4,steps:6,progress:0.889999}
{status:"erasing",step:4,steps:6,progress:0.899999}
{status:"erasing",step:4,steps:6,progress:0.909999}
{status:"erasing",step:4,steps:6,progress:0.919999}
{status:"erasing",step:4,steps:6,progress:0.929999}
{status:"erasing",step:4,steps:6,progress:0.939999}
{status:"erasing",step:4,steps:6,progress:0.949999}
{status:"erasing",step:4,steps:6,progress:0.959999}
{status:"erasing",step:4,steps:6,progress:0.969999}
{status:"erasing",step:4,steps:6,progress:0.979999}
{status:"erasing",step:4,steps:6,progress:0.989999}
{status:"erasing",step:4,steps:6,progress:0.999999}
{status:"erasing",step:4,steps:6,progress:1.000000}
> Starting to upload ...
{status:"writing",step:5,steps:6,progress:0.000000}
{status:"writing",step:5,steps:6,progress:0.010645}
{status:"writing",step:5,steps:6,progress:0.021291}
{status:"writing",step:5,steps:6,progress:0.031936}
{status:"writing",step:5,steps:6,progress:0.042582}
{status:"writing",step:5,steps:6,progress:0.053227}
{status:"writing",step:5,steps:6,progress:0.063872}
{status:"writing",step:5,steps:6,progress:0.074518}
{status:"writing",step:5,steps:6,progress:0.085163}
{status:"writing",step:5,steps:6,progress:0.095808}
{status:"writing",step:5,steps:6,progress:0.106454}
{status:"writing",step:5,steps:6,progress:0.117099}
{status:"writing",step:5,steps:6,progress:0.127745}
{status:"writing",step:5,steps:6,progress:0.138390}
{status:"writing",step:5,steps:6,progress:0.149035}
{status:"writing",step:5,steps:6,progress:0.159681}
{status:"writing",step:5,steps:6,progress:0.170326}
{status:"writing",step:5,steps:6,progress:0.180971}
{status:"writing",step:5,steps:6,progress:0.191617}
{status:"writing",step:5,steps:6,progress:0.202262}
{status:"writing",step:5,steps:6,progress:0.212908}
{status:"writing",step:5,steps:6,progress:0.223553}
{status:"writing",step:5,steps:6,progress:0.234198}
{status:"writing",step:5,steps:6,progress:0.244844}
{status:"writing",step:5,steps:6,progress:0.255489}
{status:"writing",step:5,steps:6,progress:0.266134}
{status:"writing",step:5,steps:6,progress:0.276780}
{status:"writing",step:5,steps:6,progress:0.287425}
{status:"writing",step:5,steps:6,progress:0.298071}
{status:"writing",step:5,steps:6,progress:0.308716}
{status:"writing",step:5,steps:6,progress:0.319361}
{status:"writing",step:5,steps:6,progress:0.330007}
{status:"writing",step:5,steps:6,progress:0.340652}
{status:"writing",step:5,steps:6,progress:0.351297}
{status:"writing",step:5,steps:6,progress:0.361943}
{status:"writing",step:5,steps:6,progress:0.372588}
{status:"writing",step:5,steps:6,progress:0.383234}
{status:"writing",step:5,steps:6,progress:0.393879}
{status:"writing",step:5,steps:6,progress:0.404524}
{status:"writing",step:5,steps:6,progress:0.415170}
{status:"writing",step:5,steps:6,progress:0.425815}
{status:"writing",step:5,steps:6,progress:0.436460}
{status:"writing",step:5,steps:6,progress:0.447106}
{status:"writing",step:5,steps:6,progress:0.457751}
{status:"writing",step:5,steps:6,progress:0.468397}
{status:"writing",step:5,steps:6,progress:0.479042}
{status:"writing",step:5,steps:6,progress:0.489687}
{status:"writing",step:5,steps:6,progress:0.500333}
{status:"writing",step:5,steps:6,progress:0.510978}
{status:"writing",step:5,steps:6,progress:0.521623}
{status:"writing",step:5,steps:6,progress:0.532269}
{status:"writing",step:5,steps:6,progress:0.542914}
{status:"writing",step:5,steps:6,progress:0.553560}
{status:"writing",step:5,steps:6,progress:0.564205}
{status:"writing",step:5,steps:6,progress:0.574850}
{status:"writing",step:5,steps:6,progress:0.585496}
{status:"writing",step:5,steps:6,progress:0.596141}
{status:"writing",step:5,steps:6,progress:0.606786}
{status:"writing",step:5,steps:6,progress:0.617432}
{status:"writing",step:5,steps:6,progress:0.628077}
{status:"writing",step:5,steps:6,progress:0.638723}
{status:"writing",step:5,steps:6,progress:0.649368}
{status:"writing",step:5,steps:6,progress:0.660013}
{status:"writing",step:5,steps:6,progress:0.670659}
{status:"writing",step:5,steps:6,progress:0.681304}
{status:"writing",step:5,steps:6,progress:0.691949}
{status:"writing",step:5,steps:6,progress:0.702595}
{status:"writing",step:5,steps:6,progress:0.713240}
{status:"writing",step:5,steps:6,progress:0.723886}
{status:"writing",step:5,steps:6,progress:0.734531}
{status:"writing",step:5,steps:6,progress:0.745176}
{status:"writing",step:5,steps:6,progress:0.755822}
{status:"writing",step:5,steps:6,progress:0.766467}
{status:"writing",step:5,steps:6,progress:0.777112}
{status:"writing",step:5,steps:6,progress:0.787758}
{status:"writing",step:5,steps:6,progress:0.798403}
{status:"writing",step:5,steps:6,progress:0.809049}
{status:"writing",step:5,steps:6,progress:0.819694}
{status:"writing",step:5,steps:6,progress:0.830339}
{status:"writing",step:5,steps:6,progress:0.840985}
{status:"writing",step:5,steps:6,progress:0.851630}
{status:"writing",step:5,steps:6,progress:0.862275}
{status:"writing",step:5,steps:6,progress:0.872921}
{status:"writing",step:5,steps:6,progress:0.883566}
{status:"writing",step:5,steps:6,progress:0.894212}
{status:"writing",step:5,steps:6,progress:0.904857}
{status:"writing",step:5,steps:6,progress:0.915502}
{status:"writing",step:5,steps:6,progress:0.926148}
{status:"writing",step:5,steps:6,progress:0.936793}
{status:"writing",step:5,steps:6,progress:0.947438}
{status:"writing",step:5,steps:6,progress:0.958084}
{status:"writing",step:5,steps:6,progress:0.968729}
{status:"writing",step:5,steps:6,progress:0.979375}
{status:"writing",step:5,steps:6,progress:0.990020}
{status:"writing",step:5,steps:6,progress:1.000000}
> Starting the user app ...
{status:"running",step:6,steps:6,progress:0.000000}
{status:"running",step:6,steps:6,progress:1.000000}
>> Micronucleus done. Thank you!
Looks really promising! Thank you! I finally have some use for my digisparks. Bought them with this exact purpose in mind but only afterwards realised that it wasn't to work like that...