Hi,

VDD you can control as nemo. For INT pin you need to export the GPIO as root, 
then you can read it as nemo (IIRC)

https://github.com/kimmoli/i2ctool/blob/master/src/i2cif.cpp#L45

https://github.com/kimmoli/tohkbd2/blob/master/daemon/src/toh.cpp#L75

i also started writing daemon for the gpio management, 
https://github.com/kimmoli/gpio-daemon
but never completed the project.

-kimmo


________________________________
Lähettäjä: devel-boun...@lists.sailfishos.org 
[devel-boun...@lists.sailfishos.org] käyttäjän Dylan Van Assche 
[dylan.rsca...@gmail.com] puolesta
Lähetetty: 5. syyskuuta 2015 11:02
Vastaanottaja: devel@lists.sailfishos.org
Aihe: [SailfishDevel] Accessing Jolla GPIO without root

Hi Develsailors,

I want to build a Sailfish app which interact with the Adafruit Powerboost 500C.
That's a LiPo charger and booster in one simple package.

The idea is to build a PowerTOH which is smart enough to start charging the 
Jolla when his battery his below a certain percentage. In order to do that I 
need to make an app which can read the INT-pin on the Jolla Phone and can 
control the VDD output.

The VDD-output controls the charging while the INT-pin will read if the 
Powerhalf TOH his battery is low.

Is there a way to access these pins without root in an app?

Cheers,
Dylan Van Assche
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Reply via email to