Inforce Computing Forums

inforce computing forums to discuss about inforce products

How to read/write to GPIOs from Android?

Questions and discussions related to Inforce 6640 Micro SBC

by pedro.villanuevapena » Fri Jan 12, 2018 9:18 am

Hi,

Is there a way in android to control the GPIOs, and the PWM GPIO in particular?

Thanks
pedro.villanuevapena
 
Posts: 5
Joined: Fri Nov 10, 2017 7:24 am

by ashwin » Thu Jan 18, 2018 2:13 am

You can refer to APQ8096_Configure_BLSP_Port_Application_Note_002977_Rev available on techweb.

Best Regards,
Ashwin
ashwin
 
Posts: 52
Joined: Wed Jul 01, 2015 10:07 pm

by jhlim » Mon Jan 28, 2019 5:24 pm

The Inforce 6640 Board has user configuable LEDs(3,5,7,9).

I want to control them via sysfs (gpio) but I could not figure out where they were connected in APQ8096-Configure-BLSP-Port-Application-Note-002977-Rev-B.pdf and Inforce_6640_Hardware_Reference_Manual_002754_Rev_A.pdf .

Can you tell me GPIO number of LEDs ?

-----
Code: Select all
lrwxrwxrwx  1 root root 0 2019-01-29 04:35 BT_LED -> ../../devices/soc/leds-qpnp-10/leds/BT_LED
lrwxrwxrwx  1 root root 0 2019-01-29 04:35 UserLED0 -> ../../devices/soc/leds-qpnp-29/leds/UserLED0
lrwxrwxrwx  1 root root 0 2019-01-29 04:35 UserLED1 -> ../../devices/soc/leds-qpnp-29/leds/UserLED1
lrwxrwxrwx  1 root root 0 2019-01-29 04:35 UserLED2 -> ../../devices/soc/leds-qpnp-29/leds/UserLED2
lrwxrwxrwx  1 root root 0 2019-01-29 04:35 UserLED3 -> ../../devices/soc/leds-qpnp-21/leds/UserLED3
lrwxrwxrwx  1 root root 0 2019-01-29 04:35 WiFi_LED -> ../../devices/soc/leds-qpnp-9/leds/WiFi_LED
lrwxrwxrwx  1 root root 0 1970-01-04 08:32 lcd-backlight -> ../../devices/soc/900000.qcom,mdss_mdp/900000.qcom,mdss_mdp:qcom,mdss_fb_hdmi/leds/lcd-backlight
lrwxrwxrwx  1 root root 0 2019-01-29 04:35 led:flash_0 -> ../../devices/soc/qpnp-flash-led-30/leds/led:flash_0
lrwxrwxrwx  1 root root 0 2019-01-29 04:35 led:flash_1 -> ../../devices/soc/qpnp-flash-led-30/leds/led:flash_1
lrwxrwxrwx  1 root root 0 2019-01-29 04:35 led:switch -> ../../devices/soc/qpnp-flash-led-30/leds/led:switch
lrwxrwxrwx  1 root root 0 2019-01-29 04:35 led:torch_0 -> ../../devices/soc/qpnp-flash-led-30/leds/led:torch_0
lrwxrwxrwx  1 root root 0 2019-01-29 04:35 led:torch_1 -> ../../devices/soc/qpnp-flash-led-30/leds/led:torch_1
lrwxrwxrwx  1 root root 0 2019-01-29 04:35 mmc0:: -> ../../devices/soc/74a4900.sdhci/leds/mmc0::
lrwxrwxrwx  1 root root 0 1970-01-04 08:32 wled -> ../../devices/soc/qpnp-wled-27/leds/wled
msm8996:/sys/class/leds #



-----
A better tomorrow
jhlim
 
Posts: 5
Joined: Thu Oct 18, 2018 6:52 pm


Return to INFORCE 6640™ Micro SBC

cron

Contact Us.