From 00314770453325e996ff1403323e0e0620a856dd Mon Sep 17 00:00:00 2001 From: Johan Euphrosine Date: Mon, 19 Dec 2016 08:46:26 -0800 Subject: [PATCH] contrib-drivers/rainbowhat: add missing LEDSTRIP_LENGTH Change-Id: I3aab8e94b664fe8e676dc006a81c9b3b29116b34 --- rainbowhat/publish.gradle | 2 +- .../android/things/contrib/driver/rainbowhat/RainbowHat.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rainbowhat/publish.gradle b/rainbowhat/publish.gradle index 3f73c00..a44850b 100644 --- a/rainbowhat/publish.gradle +++ b/rainbowhat/publish.gradle @@ -44,7 +44,7 @@ allprojects { apply from: 'build.gradle' apply plugin: 'maven-publish' -def packageVersion = '0.1' +def packageVersion = '0.2' task sourceJar(type: Jar) { classifier = 'sources' diff --git a/rainbowhat/src/main/java/com/google/android/things/contrib/driver/rainbowhat/RainbowHat.java b/rainbowhat/src/main/java/com/google/android/things/contrib/driver/rainbowhat/RainbowHat.java index 9ad9678..90f5da7 100644 --- a/rainbowhat/src/main/java/com/google/android/things/contrib/driver/rainbowhat/RainbowHat.java +++ b/rainbowhat/src/main/java/com/google/android/things/contrib/driver/rainbowhat/RainbowHat.java @@ -52,6 +52,7 @@ public class RainbowHat { public static final String LED_RED = "BCM6"; public static final String LED_GREEN = "BCM19"; public static final String LED_BLUE = "BCM26"; + public static final int LEDSTRIP_LENGTH = 7; public static Bmx280 openSensor() throws IOException { return new Bmx280(BUS_SENSOR);