<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX Processors中的主题 Re: How can I use Rpi GPIO Header of iMX93?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-can-I-use-Rpi-GPIO-Header-of-iMX93/m-p/1935013#M227413</link>
    <description>I found that those pins not working were used to do something else not for GPIO but SPI, SAI, CAN ...</description>
    <pubDate>Mon, 19 Aug 2024 09:08:48 GMT</pubDate>
    <dc:creator>dpcivl</dc:creator>
    <dc:date>2024-08-19T09:08:48Z</dc:date>
    <item>
      <title>How can I use Rpi GPIO Header of iMX93?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-can-I-use-Rpi-GPIO-Header-of-iMX93/m-p/1934665#M227395</link>
      <description>&lt;P&gt;Hello, I am currently working on a project with the iMX93 EVK board. I am trying to control an interface by running a blinking LED example, but I'm having trouble figuring out how to use the RPi GPIO header.&lt;/P&gt;&lt;P&gt;I suspect that the RPi GPIO header is associated with 'gpiochip2'. I tried using GPIO line 0, assuming it was related, but the LED didn't respond. I also tried changing the line to 17 (the BCM number), but that didn't work either. I ruled out a hardware issue because the LED lights up when I connect it directly to 3.3V.&lt;/P&gt;&lt;P&gt;Could you please guide me on how to resolve this issue? Which documentation should I refer to for more information?&lt;/P&gt;&lt;P&gt;Below is the Python code I executed:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import gpiod
from gpiod.line import Direction, Value
import time

LINE = 17

with gpiod.request_lines(
    "/dev/gpiochip2",
    consumer="blink-example",
    config={
        LINE: gpiod.LineSettings(
            direction=Direction.OUTPUT, output_value=Value.ACTIVE
        )
    },
) as request:
    while True:
        request.set_value(LINE, Value.ACTIVE)
        time.sleep(1)
        request.set_value(LINE, Value.INACTIVE)
        time.sleep(1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 03:02:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-can-I-use-Rpi-GPIO-Header-of-iMX93/m-p/1934665#M227395</guid>
      <dc:creator>dpcivl</dc:creator>
      <dc:date>2024-08-19T03:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use Rpi GPIO Header of iMX93?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-can-I-use-Rpi-GPIO-Header-of-iMX93/m-p/1935013#M227413</link>
      <description>I found that those pins not working were used to do something else not for GPIO but SPI, SAI, CAN ...</description>
      <pubDate>Mon, 19 Aug 2024 09:08:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-can-I-use-Rpi-GPIO-Header-of-iMX93/m-p/1935013#M227413</guid>
      <dc:creator>dpcivl</dc:creator>
      <dc:date>2024-08-19T09:08:48Z</dc:date>
    </item>
  </channel>
</rss>

