<?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[Mixing M5Atom.h and M5StickCPlus.h]]></title><description><![CDATA[<p dir="auto">I have a complex application that has been using <strong>M5tickCPlus.h</strong> since I was<br />
using the M5. This works nicely.</p>
<p dir="auto">Unfortunately every time there is a new board, such at the <em>M5Atom</em>, the M5 class library<br />
is different. For example <strong>M5Atom.h</strong> has a <strong>M5.dis</strong> member for the LED button colors. And<br />
The <strong>M5StickCPlus</strong> has a <strong>M5.BtnB</strong> for managing the buttons.</p>
<p dir="auto">So how do others manage larger program complexity when these libraries are at odds with each other?<br />
I basically go back to the <strong>M5StickCPlus</strong>  and in this case cannot use the <strong>M5.dis</strong> feature.</p>
<p dir="auto">Do I create my own M5 with all the class methods I want? Also the board needs to be changed to include those different include files.</p>
]]></description><link>https://community.m5stack.com/topic/5899/mixing-m5atom-h-and-m5stickcplus-h</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Mar 2026 09:31:27 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5899.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 18 Dec 2023 23:17:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Mixing M5Atom.h and M5StickCPlus.h on Tue, 09 Jan 2024 19:25:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/16054">@konacurrents</a> <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/9305">@frameworklabs</a></p>
<p dir="auto">I'm now onto getting the <strong>M5Core2</strong>  to work with my existing infrastructure. Looking at the M5United, I cannot see how that would be used (as the readme doesn't have a Core2 define).</p>
<p dir="auto">It sure seems that the <strong>M5</strong> code provided by M5Stack and others shouldn't reuse the <strong>M5</strong>  class name. Instead they should have say <strong>M5Core2</strong> instead of <strong>M5</strong>, and <strong>M5Core2Display</strong> not <strong>M5Display</strong>.</p>
<p dir="auto">Sure it works for the standalone programs, but trying to merge code would need something like<br />
your M5United. Looking under the covers of say M5Core2's M5 class, they include their own <strong>Lcd</strong> (for example) which isn't compatible with other Lcd's.</p>
<p dir="auto">As I mentioned in the previous post, for the ATOM pulling over the LED was relatively easy. But for the M5Core2 there is a lot of code that overlaps with the M5 base (starting with M5Display).</p>
<p dir="auto">eg.  M5Display.h is defined 3 places (and I use the M5StickCPlus in my main code base).</p>
<p dir="auto">./libraries/M5Core2/src/M5Display.h<br />
./libraries/M5StickCPlus/src/M5Display.h<br />
./libraries/M5Stack/src/M5Display.h</p>
<p dir="auto">I'll look more at M5United and if you can point to getting their M5DIsplay working that would help.<br />
thanks</p>
]]></description><link>https://community.m5stack.com/post/23288</link><guid isPermaLink="true">https://community.m5stack.com/post/23288</guid><dc:creator><![CDATA[konacurrents]]></dc:creator><pubDate>Tue, 09 Jan 2024 19:25:14 GMT</pubDate></item><item><title><![CDATA[Reply to Mixing M5Atom.h and M5StickCPlus.h on Wed, 20 Dec 2023 05:16:48 GMT]]></title><description><![CDATA[<p dir="auto">The <strong>M5United</strong> looks impressive. I'll look at migrating if it fits my size constraints.</p>
]]></description><link>https://community.m5stack.com/post/23096</link><guid isPermaLink="true">https://community.m5stack.com/post/23096</guid><dc:creator><![CDATA[konacurrents]]></dc:creator><pubDate>Wed, 20 Dec 2023 05:16:48 GMT</pubDate></item><item><title><![CDATA[Reply to Mixing M5Atom.h and M5StickCPlus.h on Tue, 19 Dec 2023 23:14:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/16054">@konacurrents</a></p>
<p dir="auto">I am sure you found it yourself already but just for reference: <a href="https://github.com/m5stack/M5Unified" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Unified</a></p>
<p dir="auto">Cheers</p>
]]></description><link>https://community.m5stack.com/post/23092</link><guid isPermaLink="true">https://community.m5stack.com/post/23092</guid><dc:creator><![CDATA[frameworklabs]]></dc:creator><pubDate>Tue, 19 Dec 2023 23:14:54 GMT</pubDate></item><item><title><![CDATA[Reply to Mixing M5Atom.h and M5StickCPlus.h on Tue, 19 Dec 2023 17:58:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/9305">@frameworklabs</a> Interesting I hadn't heard of M5Unified but will look into it. Do you have a pointer to M5Unified? (I'll search)</p>
<p dir="auto">I did end up grabbing the <strong>dis</strong>  the LED_DisPlay code as is but didn't connect to the M5 class. That seems to work.</p>
<p dir="auto">I've been using the QRCode Scanner with the ATOM with some success.</p>
<p dir="auto">thanks.</p>
]]></description><link>https://community.m5stack.com/post/23088</link><guid isPermaLink="true">https://community.m5stack.com/post/23088</guid><dc:creator><![CDATA[konacurrents]]></dc:creator><pubDate>Tue, 19 Dec 2023 17:58:44 GMT</pubDate></item><item><title><![CDATA[Reply to Mixing M5Atom.h and M5StickCPlus.h on Tue, 19 Dec 2023 12:58:21 GMT]]></title><description><![CDATA[<p dir="auto">Maybe porting your code to M5Unified would make sense then</p>
]]></description><link>https://community.m5stack.com/post/23087</link><guid isPermaLink="true">https://community.m5stack.com/post/23087</guid><dc:creator><![CDATA[frameworklabs]]></dc:creator><pubDate>Tue, 19 Dec 2023 12:58:21 GMT</pubDate></item></channel></rss>