<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Arial;color: #000000;font-size: 10pt;">Hi,<br>
<br>
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)<br>
<br>
<a href="https://github.com/kimmoli/i2ctool/blob/master/src/i2cif.cpp#L45" target="_blank">https://github.com/kimmoli/i2ctool/blob/master/src/i2cif.cpp#L45</a><br>
<br>
<a href="https://github.com/kimmoli/tohkbd2/blob/master/daemon/src/toh.cpp#L75" target="_blank">https://github.com/kimmoli/tohkbd2/blob/master/daemon/src/toh.cpp#L75</a><br>
<br>
i also started writing daemon for the gpio management, <a href="https://github.com/kimmoli/gpio-daemon" target="_blank">
https://github.com/kimmoli/gpio-daemon</a> <br>
but never completed the project.<br>
<br>
<div>-kimmo<br>
<div style="font-family:Tahoma; font-size:13px"><font style="font-family:Arial" size="1"><br>
<br>
</font></div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF228987"><font color="#000000" size="2" face="Tahoma"><b>Lähettäjä:</b> devel-bounces@lists.sailfishos.org [devel-bounces@lists.sailfishos.org] käyttäjän Dylan Van Assche [dylan.rscafan@gmail.com] puolesta<br>
<b>Lähetetty:</b> 5. syyskuuta 2015 11:02<br>
<b>Vastaanottaja:</b> devel@lists.sailfishos.org<br>
<b>Aihe:</b> [SailfishDevel] Accessing Jolla GPIO without root<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>Hi Develsailors,<br>
<br>
</div>
I want to build a Sailfish app which interact with the Adafruit Powerboost 500C.<br>
</div>
That's a LiPo charger and booster in one simple package. <br>
<br>
</div>
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.<br>
<br>
</div>
The VDD-output controls the charging while the INT-pin will read if the Powerhalf TOH his battery is low.<br>
<br>
</div>
Is there a way to access these pins without root in an app?<br>
<br>
</div>
Cheers,<br>
</div>
Dylan Van Assche<i><b><br>
</b></i></div>
</div>
</div>
</div>
</body>
</html>