error 'PORTB' undeclared

Danois90:
Sorry, didn't see that :-/

Try to put "#include <Arduino.h>" as the first line in "softUart.h" :slight_smile:

Aha, that fixed it, thanks.

I'm still bemused that the 'blink' code doesn't need this but never mind, I can get on with the rest of the code.