<div dir="ltr"><div>Hi Mathieu,</div><div><br>Yo can check if the PIN number is the correct, according LSE layout ( <a href="https://minnowboard.org/minnowboard-max/board-layout" target="_blank">https://minnowboard.org/<wbr>minnowboard-max/board-layout</a> ), and your kernel support for GPIOs, too.</div><div><br></div><div>Can you to enable another GPIO?</div><div><br></div><div>P.E. 509 (PIN 26)</div><div><br></div><div>Regards</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-09-07 5:48 GMT-05:00 Mathieu COTEROT <span dir="ltr"><<a href="mailto:mcoterot@implantrack.com" target="_blank">mcoterot@implantrack.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
<br>
I'm currently trying to control a pwm generator through the I2C port. I get a problem with the start and stop condition of I2C, under Linux OS.<br>
<br>
If I'm correctly understand tutorial , I should modify SDA and SCL port (as detailed in this tutorial : <a href="http://www.robot-electronics.co.uk/i2c-tutorial" rel="noreferrer" target="_blank">http://www.robot-electronics.c<wbr>o.uk/i2c-tutorial</a>) for initiate a communication with the slave (pwm generator).<br>
<br>
However, I'm not able to access the I2C port through gpio pin.<br>
<br>
For example, this command : (with root user)<br>
<br>
echo 498 > /sys/class/gpio/export<br>
<br>
Return :<br>
<br>
bash: echo: write error: Invalid argument<br>
<br>
May I misunderstood something ?<br>
<br>
Thanks by advance for your help.<br>
<br>
Regards<br>
<br>
Mathieu<br>
______________________________<wbr>_________________<br>
elinux-MinnowBoard mailing list<br>
<a href="mailto:elinux-MinnowBoard@lists.elinux.org" target="_blank">elinux-MinnowBoard@lists.elinu<wbr>x.org</a><br>
<a href="http://lists.elinux.org/mailman/listinfo/elinux-minnowboard" rel="noreferrer" target="_blank">http://lists.elinux.org/mailma<wbr>n/listinfo/elinux-minnowboard</a><br>
</blockquote></div><br></div>