<?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[Simple Hello World with PlatformIO and M5Dial]]></title><description><![CDATA[<p dir="auto">I am just getting started with M5Dial.  I have some programs working in Arduino studio program but Visual Studio Code and PlatformIO seems way better.</p>
<p dir="auto">Here is where I am stuck:<br />
I have the platformio.ini file like this:</p>
<p dir="auto">[env:m5stack-cores3]<br />
platform = espressif32<br />
board = m5stack-cores3<br />
framework = arduino</p>
<p dir="auto">lib_deps =<br />
m5stack/M5Dial<br />
m5stack/M5GFX<br />
m5stack/M5Unified</p>
<p dir="auto">upload_speed = 115200<br />
monitor_speed = 115200</p>
<p dir="auto">and my main.cpp program is simply:</p>
<p dir="auto">#include &lt;Arduino.h&gt;</p>
<p dir="auto">#include "M5Dial.h"<br />
#include &lt;WiFi.h&gt;<br />
#include &lt;M5GFX.h&gt;</p>
<p dir="auto">void setup() {<br />
// put your setup code here, to run once:<br />
auto cfg = M5.config();<br />
M5Dial.begin(cfg, true, true);<br />
M5Dial.Display.setBrightness(34);<br />
M5Dial.Display.fillScreen(0xABE1);<br />
M5Dial.Display.setTextDatum(4);<br />
Serial.print("Test");<br />
}</p>
<p dir="auto">void loop() {<br />
// put your main code here, to run repeatedly:<br />
}</p>
<p dir="auto">Everything compiles and uploads but screen is blank.  Serial monitor equivalent complains about a lot.</p>
<p dir="auto">Did I choose the wrong board?<br />
board = m5stack-cores3</p>
]]></description><link>https://community.m5stack.com/topic/5993/simple-hello-world-with-platformio-and-m5dial</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 11:28:56 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5993.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 18 Jan 2024 23:41:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Simple Hello World with PlatformIO and M5Dial on Sun, 28 Jul 2024 09:02:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/uberdweeb" aria-label="Profile: uberdweeb">@<bdi>uberdweeb</bdi></a> Hello! Sorry for late answer, but I have the fix for it. All you need to do is modify the platformio.ini file, and write this into it:</p>
<pre><code>[env:m5stack-stamps3]
platform = espressif32
board = m5stack-stamps3
framework = arduino
build_flags =
   -DARDUINO_USB_CDC_ON_BOOT=1
monitor_speed = 115200
</code></pre>
]]></description><link>https://community.m5stack.com/post/25938</link><guid isPermaLink="true">https://community.m5stack.com/post/25938</guid><dc:creator><![CDATA[Matej&#x27;s Workshop]]></dc:creator><pubDate>Sun, 28 Jul 2024 09:02:06 GMT</pubDate></item><item><title><![CDATA[Reply to Simple Hello World with PlatformIO and M5Dial on Thu, 18 Jan 2024 23:42:40 GMT]]></title><description><![CDATA[<p dir="auto">After I wrote all of this I figured out I did have the wrong board specified:<br />
board = m5stack-stamps3<br />
seems to be correct.</p>
<p dir="auto">Now I can't get USBSerial functions to work, and previously any Serial.print statements didn't work but I am one step further!</p>
]]></description><link>https://community.m5stack.com/post/23386</link><guid isPermaLink="true">https://community.m5stack.com/post/23386</guid><dc:creator><![CDATA[uberdweeb]]></dc:creator><pubDate>Thu, 18 Jan 2024 23:42:40 GMT</pubDate></item></channel></rss>