ARC Pro

Upgrade to ARC Pro

ARC Early Access will give you immediate updates and new features needed to unleash your robot's potential!

setClockSpeed

I2C.setClockSpeed(speed, [ezbIndex])

Parameters

speed Clock speed to set the I2C interface to.
ezbIndex (optional) Board index of the EZB to set the I2C clock speed of.

Returns

Nothing

Description

Sets the clock speed of the I2C interface. The default speed is 100000, which is 100khz. Many devices support faster speeds, up to 400000 (400khz).