Looks like whoever wrote the file iotnx5.h
redefined the macro BIN
which is defined in the Arduino core. This is not good!
The others are warnings to let you know that including delay.h
has been superceeded and younshould be including util/delay.h
instead.
If the problem isn’t in your code, then it sounds like your library(?) Might be out of date and needing an update by the author.
Regarding the errorn309 problem, I used to haveva Digispark years ago with an ATtiny85 but sadly, I bricked it when I set the fuses!
It used to have a weird bootloader with prompted me to do something, plug it in I tjink, when uploading.
Do you get that prompt when you try to upload?
Can you upload a standard blink sketch without problems?
By the way, I edited your post to wrap the code and error sections in triple backticks:
```
Like this...
```
As it makes things more readable and prevents bits of the text from disappearing due to Windows backslashes or ‘<’ and/or ‘>’ etc.
Cheers,
Norm