<?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[How to test we compile a M5Stack ?]]></title><description><![CDATA[<p dir="auto">On a source file, we have to test if we compile an M5Stack or ESP32LoRa or a ESP8266. Is there a specific variable to test like :<br />
#ifdef ESP8266</p>
<p dir="auto">I know that we can test ESP32 but it's not enought to define the difference berween a ESP32 and a M5Stack...</p>
]]></description><link>https://community.m5stack.com/topic/71/how-to-test-we-compile-a-m5stack</link><generator>RSS for Node</generator><lastBuildDate>Sat, 02 May 2026 22:33:22 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/71.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 12 Jan 2018 19:59:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to test we compile a M5Stack ? on Wed, 14 Feb 2018 06:15:41 GMT]]></title><description><![CDATA[<p dir="auto">try:</p>
<pre><code>#ifdef ARDUINO_M5Stack-Core-ESP32
</code></pre>
<p dir="auto">as is declared in arduino boards:<br />
<a href="https://github.com/espressif/arduino-esp32/blob/master/boards.txt#L1169" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/espressif/arduino-esp32/blob/master/boards.txt#L1169</a><br />
<strong>but this is temporary solution because hyphens are not valid for arduino.</strong></p>
<p dir="auto">We waiting for some changes...<br />
"issue" is added: <a href="https://github.com/m5stack/M5Stack/issues/41" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Stack/issues/41</a></p>
]]></description><link>https://community.m5stack.com/post/374</link><guid isPermaLink="true">https://community.m5stack.com/post/374</guid><dc:creator><![CDATA[reaper7]]></dc:creator><pubDate>Wed, 14 Feb 2018 06:15:41 GMT</pubDate></item><item><title><![CDATA[Reply to How to test we compile a M5Stack ? on Wed, 14 Feb 2018 02:18:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/laurentg" aria-label="Profile: laurentg">@<bdi>laurentg</bdi></a></p>
<p dir="auto">Hi, will these work for you ? They are specifically used in code for the M5Stack.</p>
<p dir="auto">#include &lt;M5Stack.h&gt;<br />
M5.begin();</p>
]]></description><link>https://community.m5stack.com/post/373</link><guid isPermaLink="true">https://community.m5stack.com/post/373</guid><dc:creator><![CDATA[JJ]]></dc:creator><pubDate>Wed, 14 Feb 2018 02:18:31 GMT</pubDate></item></channel></rss>