Skip to content

Commit

Permalink
Merge pull request leinardi#9 from leinardi/tsl256x
Browse files Browse the repository at this point in the history
Add support for Tsl256x
  • Loading branch information
leinardi authored Feb 4, 2018
2 parents 1116568 + 2b6fe8b commit 02acf82
Show file tree
Hide file tree
Showing 45 changed files with 1,698 additions and 39 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ captures/
.idea/*
!.idea/codeStyleSettings.xml
!.idea/checkstyle-idea.xml
!/.idea/copyright/
!.idea/copyright/
!.idea/codeStyles/

# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild
Expand Down
9 changes: 5 additions & 4 deletions .idea/checkstyle-idea.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions .idea/codeStyleSettings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

247 changes: 247 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/copyright/Apache_2_0.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions .idea/copyright/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ android:
- google-gdk-license-.+

script:
- ./gradlew clean check --profile
- ./gradlew clean check dependencyUpdate --profile
- pandoc `ls -1rt build/reports/profile/profile-*.html | tail -n1` -t plain
- cat build/dependencyUpdates/report.txt
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Driver | Type | Usage (add to your gradle dependencies) | Note
[driver-hd44780](driver-hd44780) | alphanumeric dot matrix LCD | `implementation 'com.leinardi.android.things:driver-hd44780:0.2'` | [![Maven metadata URI](https://img.shields.io/maven-metadata/v/http/jcenter.bintray.com/com/leinardi/android/things/driver-hd44780/maven-metadata.xml.svg)](https://jcenter.bintray.com/com/leinardi/android/things/driver-hd44780/maven-metadata.xml) [changelog](driver-hd44780/CHANGELOG.md) [sample](sample-hd44780)
[driver-lsm9ds1](driver-lsm9ds1) | 3D accelerometer, 3D gyroscope, 3D magnetometer and temperature sensor | `implementation 'com.leinardi.android.things:driver-lsm9ds1:0.3'` | [![Maven metadata URI](https://img.shields.io/maven-metadata/v/http/jcenter.bintray.com/com/leinardi/android/things/driver-lsm9ds1/maven-metadata.xml.svg)](https://jcenter.bintray.com/com/leinardi/android/things/driver-lsm9ds1/maven-metadata.xml) [changelog](driver-lsm9ds1/CHANGELOG.md) [sample](sample-lsm9ds1)
[driver-sh1106](driver-sh1106) | OLED display | `implementation 'com.leinardi.android.things:driver-sh1106:0.2'` | [![Maven metadata URI](https://img.shields.io/maven-metadata/v/http/jcenter.bintray.com/com/leinardi/android/things/driver-sh1106/maven-metadata.xml.svg)](https://jcenter.bintray.com/com/leinardi/android/things/driver-sh1106/maven-metadata.xml) [changelog](driver-sh1106/CHANGELOG.md) [sample](sample-sh1106)
[driver-tsl256x](driver-tsl256x) | light-to-digital converter | `implementation 'com.leinardi.android.things:driver-tsl256x:0.1'` | [![Maven metadata URI](https://img.shields.io/maven-metadata/v/http/jcenter.bintray.com/com/leinardi/android/things/driver-tsl256x/maven-metadata.xml.svg)](https://jcenter.bintray.com/com/leinardi/android/things/driver-tsl256x/maven-metadata.xml) [changelog](driver-tsl256x/CHANGELOG.md) [sample](sample-tsl256x)
<!-- DRIVER_LIST_END -->

## Change of group ID and package name
Expand Down
6 changes: 4 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
apply from: rootProject.file('versions-plugin.gradle')

buildscript {
repositories {
Expand All @@ -22,8 +23,9 @@ buildscript {
dependencies {
classpath deps.android_gradle_plugin
classpath deps.android_checkstyle_plugin
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath deps.android_maven_gradle_plugin
classpath deps.gradle_bintray_plugin
classpath deps.gradle_versions_plugin
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
2 changes: 1 addition & 1 deletion checkstyle.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ checkstyle {
ignoreFailures = false // Whether this task will ignore failures and continue running the build.
configFile rootProject.file('config/checkstyle/checkstyle.xml')
// The Checkstyle configuration file to use.
toolVersion = '8.5' // The version of Checkstyle you want to be used
toolVersion = '8.7' // The version of Checkstyle you want to be used
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

package com.leinardi.android.things.driver.epaperdriverhat;

import android.graphics.Color;

import com.google.android.things.pio.Gpio;
import com.google.android.things.pio.PeripheralManagerService;
import com.google.android.things.pio.SpiDevice;
Expand All @@ -26,9 +24,6 @@
import java.io.IOException;
import java.util.Arrays;

/**
* Driver for controlling the EPAPERDRIVERHAT OLED display.
*/
@SuppressWarnings("WeakerAccess")
public abstract class Epd implements Closeable {
private static final String TAG = Epd.class.getSimpleName();
Expand Down Expand Up @@ -134,12 +129,12 @@ public void reset() throws IOException {
}

/**
* @return the width of the display
* Get the width of the display
*/
public abstract int getDisplayWidth();

/**
* @return the height of the display
* Get the height of the display
*/
public abstract int getDisplayHeight();

Expand Down
Loading

0 comments on commit 02acf82

Please sign in to comment.