<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[COM.LTE pin 2?]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">I have a number of COM.LTE modems running successfully with CoreBasic units.  I was just going through some of my code to make a list of which pins are available for use when I noticed a reference to pin 2 during the modem initialization.</p>
<p dir="auto">I see it show up in almost every sample config and forum post like this:</p>
<pre><code>SerialAT.begin(115200, SERIAL_8N1, 5, 13); 
pinMode(2, OUTPUT);
digitalWrite(2, 0);
delay(3000);
digitalWrite(2, 1);
</code></pre>
<p dir="auto">What is the purpose of pin 2 here?  Many of the examples will have a comment along the lines of "set pin 2 high for using the modem (simulates a power button press)".</p>
<p dir="auto">My code doesn't have the two digitalWrite lines, but a single modem.restart() and it has been working fine.  As an experiment, I tried removing the pinMode(2, OUTPUT) line in my code and reassigning it as an input connected to a toggle switch, and everything still seems to be fine.</p>
<p dir="auto">Thanks!</p>
<p dir="auto">aezero</p>
]]></description><link>https://community.m5stack.com/topic/6583/com-lte-pin-2</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 04:12:30 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6583.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 24 Jun 2024 18:44:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to COM.LTE pin 2? on Thu, 27 Jun 2024 19:55:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a> Thanks, Felix!  You're the best!</p>
]]></description><link>https://community.m5stack.com/post/25696</link><guid isPermaLink="true">https://community.m5stack.com/post/25696</guid><dc:creator><![CDATA[aezero]]></dc:creator><pubDate>Thu, 27 Jun 2024 19:55:38 GMT</pubDate></item><item><title><![CDATA[Reply to COM.LTE pin 2? on Mon, 24 Jun 2024 19:52:04 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/aezero" aria-label="Profile: aezero">@<bdi>aezero</bdi></a></p>
<p dir="auto">this code sequence is used to power on a given modem. Some types of modems power on automatically and other types of modems need a short pulse to turn on.</p>
<p dir="auto">The SIM7600 used in COM.LTE is wired to automatically turn on - no additional pin is required for that. In other words you can use pin 2 for something else.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/25669</link><guid isPermaLink="true">https://community.m5stack.com/post/25669</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Mon, 24 Jun 2024 19:52:04 GMT</pubDate></item></channel></rss>