nisrulz / android-examples

:shipit: [Examples] Simple basic isolated apps, for budding android devs.
Apache License 2.0
1.75k stars 661 forks source link

📖 Guest Book 🙇🏻‍♂️ #26

Open nisrulz opened 4 years ago

nisrulz commented 4 years ago

This "issue" serves as a guest book. You're welcome to write nice things about this project, share how it's helped you out, learn something or solve a problem.

Idea came from this tweet.

RichardChambers commented 4 years ago

I'm new to Kotlin and just found your Git and have some work to do reviewing your work. Thank you for all your effort. I expect to learn a lot from these examples.

I am working with a DragonBoard 410C that I purchased from Arrow Electronics https://www.arrow.com/en/products/dragonboard410c/arrow-development-tools

This board arrives with Android 5.1 so I'm using Android Studio with Kotlin.

The problem I have is accessing the GPIO pins on the 40 pin low power connector in order to do a simple LED blink test.

It appears that the proper approach is to the the Linux GPIO library described at https://www.kernel.org/doc/html/latest/driver-api/gpio/legacy.html however that seems to be Linux system services that are designed to be called in a C program.

Are there any of your examples that show how to access C style interfaced Linux system services and libraries such as gpiolib?

nisrulz commented 4 years ago

@RichardChambers Thank you for your comment. As you can see this is a different issue and should be opened as a separate issue. This issue is as per the description used for

This "issue" serves as a guest book. You're welcome to write nice things about this project, share how it's helped you out, learn something or solve a problem.

To answer your question: No. This repo only has example apps meant for Android domain only. There are examples for interfacing with level code via NDK, which again is specific to Android domain. I think you need to look else where for your use case.