Giter Site home page Giter Site logo

anurajr1 / androidthingsrainbowhat-sensor_usage-kotlin Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 69 KB

Kotlin project to read the sensor value from rainbowHAT

License: Apache License 2.0

Kotlin 100.00%
kotlin-android kotlin android androidthings rainbow-hat

androidthingsrainbowhat-sensor_usage-kotlin's Introduction

AndroidthingsRainbowHAT-Sensor_Usage-Kotlin

Kotlin project to read the sensor value from rainbowHAT

Using Pico pro maker kit - https://developer.android.com/things/hardware/imx7d-kit.html

NXP i.MX7D board - https://developer.android.com/things/hardware/imx7d.html

Kotlin is now an official language on Android. It's expressive, concise, and powerful. Best of all, it's interoperable with our existing Android languages and runtime. The project is written in Kotlin language. Display shows the temperature reading from the rainbowHAT. you can change the code to read the pressure information as well.

Read more about Kotlin in Android- https://developer.android.com/kotlin/index.html

Add the dependencies in gradle

dependencies {
    compileOnly 'com.google.android.things:androidthings:+'
    implementation"org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
    compile 'com.google.android.things.contrib:driver-rainbowhat:0.8'
}

project gradle

    buildscript {
    ext.kotlin_version = '1.1.51'
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

Demo

videotogif_2017 12 27_23 21 32

androidthingsrainbowhat-sensor_usage-kotlin's People

Contributors

anurajr1 avatar

Watchers

 avatar

Forkers

jewom

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.