Tiger 10
Posts: 1
Joined: Wed Aug 28, 2019 8:46 pm

Question about different OS for rpi

Mon Dec 02, 2019 5:01 pm

Hi. I have a raspberry pi 3 B+ and I was wondering if i can run android and somehow still access the gpio pins. I want to make an app with buttons to control motors and relays, but still be able to reach apps like youtube, Gps etc. I also want to use a 7 inch touch screen. I have installed android on the pi the screen shows perfectly but the touch function is not working what can i do? If i can't use android what can i use that is more user friendly than Python?

fruitoftheloom
Posts: 21049
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Question about different OS for rpi

Tue Dec 03, 2019 8:12 am

Tiger 10 wrote:
Mon Dec 02, 2019 5:01 pm
Hi. I have a raspberry pi 3 B+ and I was wondering if i can run android and somehow still access the gpio pins. I want to make an app with buttons to control motors and relays, but still be able to reach apps like youtube, Gps etc. I also want to use a 7 inch touch screen. I have installed android on the pi the screen shows perfectly but the touch function is not working what can i do? If i can't use android what can i use that is more user friendly than Python?

https://www.raspberrypi.org/forums/view ... 3&t=243832
Retired disgracefully.....
This at present is my daily "computer" https://www.asus.com/us/Chrome-Devices/Chromebit-CS10/

Konsta
Posts: 73
Joined: Thu Aug 16, 2018 3:55 pm
Location: Finland
Contact: Website Twitter

Re: Question about different OS for rpi

Tue Dec 03, 2019 2:40 pm

Tiger 10 wrote:
Mon Dec 02, 2019 5:01 pm
Hi. I have a raspberry pi 3 B+ and I was wondering if i can run android and somehow still access the gpio pins. I want to make an app with buttons to control motors and relays, but still be able to reach apps like youtube, Gps etc. I also want to use a 7 inch touch screen. I have installed android on the pi the screen shows perfectly but the touch function is not working what can i do? If i can't use android what can i use that is more user friendly than Python?
You can access GPIO pins using sysfs in all LineageOS builds (14.1, 15.1, and 16.0 - https://konstakang.com/devices/rpi3/). There's no java API for GPIO access or anything but it should be straight forward to code it yourself. Your app needs to use root permissions to be able to write to sysfs, though.

All these builds also support some external USB GPS dongles. Official 7" touchscreen works with LineageOS 14.1 & 15.1 but not currently with 16.0.
KonstaKANG.com

Return to “Android”