Control of all gpio ports in Android


#1

The guide was cited led control. I decided to check out how you can manage other ports and made a table:



First, you need to allow root access using adb:

adb devices -l adb connect 0 adb remount adb shell chmod 06755 /system/bin/su exit adb reboot

and now any console, you can run the example:

su echo 0 > /sys/class/gpio_sw/PH5/data //turn off echo 1 > /sys/class/gpio_sw/PH5/data //turn on exit


#2

The operation of the ports I checked measuring the voltage. When you turn off the port voltage is 0 volts, when you turn on 3.3 volts. It works!


(Amar Nath) #3

Any Idea on PWM. How about I2C on Android. Can some one publish in Android Source code.


(Matheus) #4

Vão se fuder bando de filhos da puta do caraio