using the ATMEGA328PB as TWI master works fine with Peter Fleurys lib on TWI bus 0.
But trying to set it up as slave, seems to be a little complicated, as it has 2 TWI busses and I did not find any library to manage this.
I've already read this thread, https://www.avrfreaks.net/forum/... but I find it just more confusing.
I didn't even manage to start the init function, as the compiler doesn't seem to know TWAR0 and TWCR0, although there is no red underline.
Removing the '0' (TWAR, TWCR) , there are no errors but this doesn't work either ...
Any ideas what noobie mistake I made this time?
Is using ISR(TWI0_vect) OK then?