Skip to content

Commit

Permalink
Version 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
3cky committed May 10, 2021
1 parent 24ef9f7 commit 75c8e95
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
```

Expand Down Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ allprojects {
}

ext {
projectVersion = '1.2.0-dev'
projectVersion = '1.2.0'
}

task clean(type: Delete) {
Expand Down

0 comments on commit 75c8e95

Please sign in to comment.