<?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>S32KのトピックRe: Led control using switch</title>
    <link>https://community.nxp.com/t5/S32K/Led-control-using-switch/m-p/1605891#M20972</link>
    <description>&lt;P&gt;&lt;A href="mailto:Hi@Shrini" target="_blank"&gt;Hi@Shrini&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Senlent_0-1677481823644.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/212461iDF34590FA02F6AAF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Senlent_0-1677481823644.png" alt="Senlent_0-1677481823644.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2023 07:10:45 GMT</pubDate>
    <dc:creator>Senlent</dc:creator>
    <dc:date>2023-02-27T07:10:45Z</dc:date>
    <item>
      <title>Led control using switch</title>
      <link>https://community.nxp.com/t5/S32K/Led-control-using-switch/m-p/1605793#M20968</link>
      <description>&lt;P&gt;I have written the code for led control using switch. But it is not working. I have configured the pins PTC12 for switch as input direction and PTD15 for LED as output direction.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;#define LED0_PORT PTC&lt;BR /&gt;#define LED0_PIN 12&lt;BR /&gt;// #define LED1_PORT PTC&lt;BR /&gt;// #define LED1_PIN 13&lt;BR /&gt;#define LED2_PORT PTD&lt;BR /&gt;#define LED2_PIN 15&lt;BR /&gt;// #define LED3_PORT PTD&lt;BR /&gt;// #define LED3_PIN 16&lt;BR /&gt;#include "sdk_project_config.h"&lt;BR /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;BR /&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;CLOCK_DRV_Init(&amp;amp;clockMan1_InitConfig0);&lt;BR /&gt;PINS_DRV_Init(NUM_OF_CONFIGURED_PINS0, g_pin_mux_InitConfigArr0);&lt;BR /&gt;int sw = PINS_DRV_ReadPins(LED0_PORT);&lt;BR /&gt;for(;;)&lt;BR /&gt;{&lt;BR /&gt;if(sw == 0){&lt;BR /&gt;PINS_DRV_WritePin(LED2_PORT, LED2_PIN, 1);&lt;BR /&gt;}&lt;BR /&gt;else{&lt;BR /&gt;PINS_DRV_WritePin(LED2_PORT, LED2_PIN, 0);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 05:49:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Led-control-using-switch/m-p/1605793#M20968</guid>
      <dc:creator>Shrini</dc:creator>
      <dc:date>2023-02-27T05:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Led control using switch</title>
      <link>https://community.nxp.com/t5/S32K/Led-control-using-switch/m-p/1605891#M20972</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@Shrini" target="_blank"&gt;Hi@Shrini&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Senlent_0-1677481823644.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/212461iDF34590FA02F6AAF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Senlent_0-1677481823644.png" alt="Senlent_0-1677481823644.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 07:10:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Led-control-using-switch/m-p/1605891#M20972</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2023-02-27T07:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Led control using switch</title>
      <link>https://community.nxp.com/t5/S32K/Led-control-using-switch/m-p/1605933#M20974</link>
      <description>Hi@Senlent, Thank you.</description>
      <pubDate>Mon, 27 Feb 2023 08:22:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Led-control-using-switch/m-p/1605933#M20974</guid>
      <dc:creator>Shrini</dc:creator>
      <dc:date>2023-02-27T08:22:07Z</dc:date>
    </item>
  </channel>
</rss>

