error 'PORTB' undeclared

Sorry, didn't see that :-/

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