diff --git a/README.md b/README.md index 2f45bef..2acd937 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ allprojects { Add library to dependencies: ```gradle dependencies { - implementation 'com.github.3cky:usb-i2c-android:1.1.0' + implementation 'com.github.3cky:usb-i2c-android:1.2.0' } ``` @@ -66,6 +66,11 @@ usbManager.requestPermission(i2cAdapter.getUsbDevice(), usbPermissionIntent); ... // USB permission intent handler called with success result +// Set bus clock speed to 400 kbit/s, if supported by adapter +if (i2cAdapter.isClockSpeedSupported(UsbI2cAdapter.CLOCK_SPEED_FAST)) { + i2cAdapter.setClockSpeed(UsbI2cAdapter.CLOCK_SPEED_FAST); +} + // Open adapter i2cAdapter.open(); diff --git a/build.gradle b/build.gradle index e3a3ff8..c2d2538 100644 --- a/build.gradle +++ b/build.gradle @@ -18,7 +18,7 @@ allprojects { } ext { - projectVersion = '1.2.0-dev' + projectVersion = '1.2.0' } task clean(type: Delete) {