I have set up i2c between a Raspberry Pi 4 and an Arduino with a level shifter. I have set the i2c baudrate in /boot/config.txt using
dtparam=i2c_arm_baudrate=400000
But when I look at the i2c clock signal with a USB ocilloscope, the period is 6.24 microseconds for a frequency of 160 kHz. Any ideas why this might be happening?
Even with the Arduino and the level shifter disconnected, I see 160 kHz.
I am using wiringPi in C on the Raspberry Pi.
Thanks,
Ryan