Skip to content
Go to file


Failed to load latest commit information.
Latest commit message
Commit time

Android Things user-space drivers Build Status

Sample peripheral drivers for Android Things.

NOTE: these drivers are not production-ready. They are offered as sample implementations of Android Things user space drivers for common peripherals as part of the Developer Preview release. There is no guarantee of correctness, completeness or robustness.

How to use a driver

For your convenience, drivers in this repository are also published to JCenter as Maven artifacts. Look at their artifact and group ID in their build.gradle and add them as dependencies to your own project.

For example, to use the button driver, version 1.0, simply add the line below to your project's build.gradle:

dependencies {
    implementation ''

Current contrib drivers

Driver Type Usage (add to your gradle dependencies) Note
driver-adc Analog to Digital Converters implementation '' sample changelog
driver-apa102 RGB LED strip implementation '' sample changelog
driver-bmx280 temperature, pressure and humidity sensor implementation '' sample changelog
driver-button push button over GPIO implementation '' sample changelog
driver-cap1xxx capacitive touch buttons implementation '' changelog
driver-gps GPS implementation '' sample changelog
driver-ht16k33 7-digit alphanumeric segment display implementation '' sample changelog
driver-lowpan LoWPAN support over UART implementation '' sample changelog
driver-matrixkeypad driver for generic matrix keypads implementation '' sample changelog
driver-mma7660fc accelerometer sensor implementation '' sample changelog
driver-motorhat DC Motor HAT implementation '' sample changelog
driver-pwmservo PWM servo implementation '' sample changelog
driver-pwmspeaker PWM speaker/buzzer implementation '' sample changelog
driver-rainbowhat metadriver for the Rainbow HAT implementation '' sample changelog
driver-sensehat metadriver for the Sense HAT implementation '' changelog
driver-ssd1306 OLED display implementation '' sample changelog
driver-thermalprinter Driver for a thermal printer implementation '' changelog
driver-tm1637 4-digit numeric segment display implementation '' sample changelog
driver-vcnl4200 proximity and ambient light sensor implementation '' changelog
driver-voicehat driver for VoiceHat implementation '' sample changelog
driver-zxgesturesensor zx gesture sensor implementation '' changelog

Deprecated drivers

Driver Type Usage (add to your gradle dependencies) Reason
driver-adcv2x Sparkfun ADC Block for Intel Edison implementation '' Superseded by driver-adc
driver-cap12xx capacitive touch buttons implementation '' Superseded by driver-cap1xxx


Copyright 2016 Google Inc.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

You can’t perform that action at this time.