Richardrol wrote:You should be able to use the GPIO pins on Android
, but support can depend on the ROM and kernel used on the NanoPi M2. A lot of Android builds don’t expose GPIO access as easily as Linux does, so getting sensors like a 3 axis gyro working for VR apps may require custom drivers or additional development. If your main goal is Google Cardboard or VRidge tracking, Linux or a newer Android build with better hardware support might be easier to work with.
Can't believe my old reply is nearly 6 years ago.
If you are building Android from source, you can modify the access to the GPIO pins from the Linux configuration files. I had GPIO, UART, I2C and SPI etc all working with Android 5.1
I've not used these boards for a number of years now but should be easy enough to do the same on later Android source builds.