Open this project with Android Stdio
Mraa library is used in this project, which can drive hardware to provide corresponding functions.
The driving hardware resources include GPIO, AIO, I2C, PWM, SPI, UART.
All the functions in the software are very simple, there is nothing to explain.