Code Monkey home page Code Monkey logo

lmk.javaio's Introduction

LMK.JAVAIO

LMK.JAVAIO is a JAVA GPIO library which supports LeMaker Guitar board. If we want to use it in your Android system, we need copy the library code to android source code tree and compile it .

Usage:

Download necessary source code

Download the Guitar Android source code into your workspace:

cd your_workspace/
git clone https://github.com/LeMaker/android-actions.git ` 

Download the Guitar JAVA GPIO library into your workspace:

git clone https://github.com/LeMaker/LMK.JAVAIO.git

Configuration environment

cd android-actions/android/
source build/envsetup.sh
lunch 

Copy the JAVA GPIO library code into android source code (in android-actions/android/system/ directory)

cp -rf ../../LMK.JAVAIO/hardware  system/

Compiling

Compile the JAVA GPIO library:

cd system/hardware/
mm -j8  
cd system/hardware/jni/
mm -j8  

Push to Guitar on-board system

After that we will make out lmkhardwarejni.so in android-actions/android/out/target/product/lemaker_guitar_bbb/system/lib/ directory, then we can use adb tool to push it to Guitar on-board Android system directory /system/lib/.

lmk.javaio's People

Contributors

bruce-zou avatar tony-hit avatar

Watchers

 avatar  avatar

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.