Attiny841 i2c slave speed


I am using an ATTiny841 with the excellent WireS library to communicate with a Raspberry Pi via hardware i2c. All working fine, but I was wondering if anybody knows how I can enable the 841 to communicate at 400 kHz rather than 100? I’m struggling to find info on this and can’t see any define to change in the source files. Anybody know how this might be achieved?

Thanks for any help



Sure thing:

The WireS library implements a slave device, the master device provides/controls the clock. You set the clock frequency on the RPi.