<?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[Sample code from M5 Github does not work on AtomS3 in Arudino IDE]]></title><description><![CDATA[<p dir="auto">I am unable to get the <a href="https://github.com/m5stack/M5AtomS3/tree/main/examples/Basics/Led" target="_blank" rel="noopener noreferrer nofollow ugc">LED Show example</a> for the AtomS3 to compile, well any of the examples for that use the serial port.  I followed <a href="https://docs.m5stack.com/en/quick_start/atoms3/arduino" target="_blank" rel="noopener noreferrer nofollow ugc">these instructions</a>.  I am running Arduino IDE 2.2.1 on windows 11 with the M5 Stack library and the M5AtomS3 board selected in the IDE.  Looks like it cannot find the definition of USBSerial as the error states "Compilation error: 'USBSerial' was not declared in this scope"</p>
<pre><code>In file included from c:\Users\Luke\OneDrive - Luke\Documents\Arduino\libraries\FastLED\src/FastLED.h:75,
                 from c:\Users\Luke\OneDrive - Luke\Documents\Arduino\libraries\M5AtomS3\src/M5AtomS3.h:8,
                 from C:\Users\Luke\AppData\Local\Temp\.arduinoIDE-unsaved2023109-47808-1drqtel.cea6\sketch_nov9a\sketch_nov9a.ino:15:
c:\Users\Luke\OneDrive - Luke\Documents\Arduino\libraries\FastLED\src/fastspi.h:157:23: note: #pragma message: No hardware SPI pins defined.  All SPI access will default to bitbanged output
 #      pragma message "No hardware SPI pins defined.  All SPI access will default to bitbanged output"
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Luke\AppData\Local\Temp\.arduinoIDE-unsaved2023109-47808-1drqtel.cea6\sketch_nov9a\sketch_nov9a.ino: In function 'void setup()':
C:\Users\Luke\AppData\Local\Temp\.arduinoIDE-unsaved2023109-47808-1drqtel.cea6\sketch_nov9a\sketch_nov9a.ino:23:5: error: 'USBSerial' was not declared in this scope
     USBSerial.println("Pls Press Btn change color");
     ^~~~~~~~~
C:\Users\Luke\AppData\Local\Temp\.arduinoIDE-unsaved2023109-47808-1drqtel.cea6\sketch_nov9a\sketch_nov9a.ino:23:5: note: suggested alternative: 'Serial'
     USBSerial.println("Pls Press Btn change color");
     ^~~~~~~~~
     Serial

exit status 1

Compilation error: 'USBSerial' was not declared in this scope
</code></pre>
]]></description><link>https://community.m5stack.com/topic/5790/sample-code-from-m5-github-does-not-work-on-atoms3-in-arudino-ide</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 19:11:37 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5790.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 10 Nov 2023 00:30:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Sample code from M5 Github does not work on AtomS3 in Arudino IDE on Mon, 27 Nov 2023 18:17:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hallinen" aria-label="Profile: hallinen">@<bdi>hallinen</bdi></a> Yes, I saw your comment over on <a href="https://github.com/m5stack/M5AtomS3/issues/23" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5AtomS3/issues/23</a><br />
The solution to my identical issue/14 was to burn-back (erase all) to 'Arduino15/staging/packages' and re-install the M5 latest board definition.<br />
Tinyu-Zhao's solution was:<br />
"Perhaps there is a local cache package that is not downloading the latest M5Stack version definition<br />
Please delete the following path, uninstall the M5Stack 2.0.6 definition and try again<br />
/Users//Library/Arduino15/staging/packages"</p>
]]></description><link>https://community.m5stack.com/post/22910</link><guid isPermaLink="true">https://community.m5stack.com/post/22910</guid><dc:creator><![CDATA[teastain]]></dc:creator><pubDate>Mon, 27 Nov 2023 18:17:36 GMT</pubDate></item><item><title><![CDATA[Reply to Sample code from M5 Github does not work on AtomS3 in Arudino IDE on Mon, 27 Nov 2023 17:03:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/teastain" aria-label="Profile: teastain">@<bdi>teastain</bdi></a>   Thank you for the reply. I have the AtomS3 Lite.  I'll give that solution a try. I told M5 stack help people about the issue.  My Ardunio IDE is 2.1.0.  I'll update it.</p>
]]></description><link>https://community.m5stack.com/post/22909</link><guid isPermaLink="true">https://community.m5stack.com/post/22909</guid><dc:creator><![CDATA[hallinen]]></dc:creator><pubDate>Mon, 27 Nov 2023 17:03:16 GMT</pubDate></item><item><title><![CDATA[Reply to Sample code from M5 Github does not work on AtomS3 in Arudino IDE on Sun, 26 Nov 2023 22:59:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hallinen" aria-label="Profile: hallinen">@<bdi>hallinen</bdi></a> &gt; dianehallinen<br />
Do you have an AtomS3 Lite or AtomS3 with LCD display?</p>
<p dir="auto">I can compile with no problems with a fully up-to-date Arduino IDE 2.2.1.</p>
<p dir="auto">I had this problem back in January and made this Issue:<br />
<a href="https://github.com/m5stack/M5AtomS3/issues/14" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5AtomS3/issues/14</a></p>
<p dir="auto">-Terry</p>
]]></description><link>https://community.m5stack.com/post/22904</link><guid isPermaLink="true">https://community.m5stack.com/post/22904</guid><dc:creator><![CDATA[teastain]]></dc:creator><pubDate>Sun, 26 Nov 2023 22:59:06 GMT</pubDate></item><item><title><![CDATA[Reply to Sample code from M5 Github does not work on AtomS3 in Arudino IDE on Sun, 26 Nov 2023 21:53:43 GMT]]></title><description><![CDATA[<p dir="auto">Thank you for your reply. My tool config was set to USB CDC On Boot: "Disabled" so I changed it and then changed it back and restarted Arduino and go the same message. I did find this...<a href="https://github.com/m5stack/M5AtomS3/issues/23" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5AtomS3/issues/23</a></p>
<p dir="auto">I changed the .cpp file but it didn't work and I got a new error when I tried to compile the "button" example.  I think I was supposed to compile the .cpp file, but I don't know how to do that.  Anyway, my new error..</p>
<pre><code class="language-In">                 from /Users/dianehallinen/Documents/Arduino/libraries/M5AtomS3/src/M5AtomS3.h:8,
                 from /private/var/folders/tc/p1d_fw296cb18b8wnf6rdm280000gn/T/.arduinoIDE-unsaved20231026-41153-fswrn6.re979/Button/Button.ino:15:
/Users/dianehallinen/Documents/Arduino/libraries/FastLED/src/fastspi.h:157:23: note: #pragma message: No hardware SPI pins defined.  All SPI access will default to bitbanged output
 #      pragma message "No hardware SPI pins defined.  All SPI access will default to bitbanged output"
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/tc/p1d_fw296cb18b8wnf6rdm280000gn/T/.arduinoIDE-unsaved20231026-41153-fswrn6.re979/Button/Button2.ino:20:6: error: redefinition of 'void setup()'
 void setup() {
      ^~~~~
/private/var/folders/tc/p1d_fw296cb18b8wnf6rdm280000gn/T/.arduinoIDE-unsaved20231026-41153-fswrn6.re979/Button/Button.ino:20:6: note: 'void setup()' previously defined here
 void setup() {
      ^~~~~
/private/var/folders/tc/p1d_fw296cb18b8wnf6rdm280000gn/T/.arduinoIDE-unsaved20231026-41153-fswrn6.re979/Button/Button2.ino:29:6: error: redefinition of 'void loop()'
 void loop() {
      ^~~~
/private/var/folders/tc/p1d_fw296cb18b8wnf6rdm280000gn/T/.arduinoIDE-unsaved20231026-41153-fswrn6.re979/Button/Button.ino:29:6: note: 'void loop()' previously defined here
 void loop() {
      ^~~~

exit status 1

Compilation error: redefinition of 'void setup()'</code></pre>
]]></description><link>https://community.m5stack.com/post/22903</link><guid isPermaLink="true">https://community.m5stack.com/post/22903</guid><dc:creator><![CDATA[hallinen]]></dc:creator><pubDate>Sun, 26 Nov 2023 21:53:43 GMT</pubDate></item><item><title><![CDATA[Reply to Sample code from M5 Github does not work on AtomS3 in Arudino IDE on Sun, 26 Nov 2023 18:51:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lukes" aria-label="Profile: lukes">@<bdi>lukes</bdi></a> maybe try and set the tool config to<br />
<img src="/assets/uploads/files/1701024695893-screenshot-2023-11-22-at-7.15.41-pm-resized.png" alt="0_1701024686893_Screenshot 2023-11-22 at 7.15.41 PM.png" class=" img-fluid img-markdown" /><br />
USB CDC on boot "disabled".<br />
-Terry</p>
<p dir="auto"><a href="https://community.m5stack.com/topic/5838/usbserial-was-not-declared-in-this-scope/3">https://community.m5stack.com/topic/5838/usbserial-was-not-declared-in-this-scope/3</a></p>
]]></description><link>https://community.m5stack.com/post/22902</link><guid isPermaLink="true">https://community.m5stack.com/post/22902</guid><dc:creator><![CDATA[teastain]]></dc:creator><pubDate>Sun, 26 Nov 2023 18:51:40 GMT</pubDate></item><item><title><![CDATA[Reply to Sample code from M5 Github does not work on AtomS3 in Arudino IDE on Sun, 26 Nov 2023 16:23:28 GMT]]></title><description><![CDATA[<p dir="auto">I'm having the same problem. I've tried a number of the examples and get various error messages. I recently updated my libraries, I have a feeling the problem is in there.</p>
]]></description><link>https://community.m5stack.com/post/22901</link><guid isPermaLink="true">https://community.m5stack.com/post/22901</guid><dc:creator><![CDATA[hallinen]]></dc:creator><pubDate>Sun, 26 Nov 2023 16:23:28 GMT</pubDate></item></channel></rss>