<?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中的主题 Reading the User buttons (KEY1, KEY2, etc..)</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Reading-the-User-buttons-KEY1-KEY2-etc/m-p/169140#M5173</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have my iMX28EVK booting and mounting the rootfs from the host PC.&amp;nbsp; I found that I can control the LED's (LED2 and LED3 on the eval board) by writing the value of 0 - 255 to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/sys/devices/platform/mxs-leds.0/leds/led-pwm0/brightness&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So is there a similar file in the /sys directory where one can read the status of the user buttons?&amp;nbsp; Reading through the docs it looks like the user buttons are routed through LRADC1&amp;nbsp; (analog to digital converter) and will generate specific digital values that represent each button.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bills&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jun 2012 21:35:31 GMT</pubDate>
    <dc:creator>blsousan</dc:creator>
    <dc:date>2012-06-20T21:35:31Z</dc:date>
    <item>
      <title>Reading the User buttons (KEY1, KEY2, etc..)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Reading-the-User-buttons-KEY1-KEY2-etc/m-p/169140#M5173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have my iMX28EVK booting and mounting the rootfs from the host PC.&amp;nbsp; I found that I can control the LED's (LED2 and LED3 on the eval board) by writing the value of 0 - 255 to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/sys/devices/platform/mxs-leds.0/leds/led-pwm0/brightness&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So is there a similar file in the /sys directory where one can read the status of the user buttons?&amp;nbsp; Reading through the docs it looks like the user buttons are routed through LRADC1&amp;nbsp; (analog to digital converter) and will generate specific digital values that represent each button.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bills&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 21:35:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Reading-the-User-buttons-KEY1-KEY2-etc/m-p/169140#M5173</guid>
      <dc:creator>blsousan</dc:creator>
      <dc:date>2012-06-20T21:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Reading the User buttons (KEY1, KEY2, etc..)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Reading-the-User-buttons-KEY1-KEY2-etc/m-p/169141#M5174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found out how to read the buttons.&amp;nbsp; Simply read from the /dev/input/event0.&amp;nbsp; It generates a stream of data every time one of the buttons is pressed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 22:00:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Reading-the-User-buttons-KEY1-KEY2-etc/m-p/169141#M5174</guid>
      <dc:creator>blsousan</dc:creator>
      <dc:date>2012-06-28T22:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Reading the User buttons (KEY1, KEY2, etc..)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Reading-the-User-buttons-KEY1-KEY2-etc/m-p/169142#M5175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one question. How do you find out which button is pressed?&lt;BR /&gt;I see no differences between the different buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 11:05:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Reading-the-User-buttons-KEY1-KEY2-etc/m-p/169142#M5175</guid>
      <dc:creator>andreass_</dc:creator>
      <dc:date>2012-10-24T11:05:34Z</dc:date>
    </item>
  </channel>
</rss>

