Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USBSerial.print('A'); causes compile error #14

Closed
2 tasks done
teastainGit opened this issue Jan 25, 2023 · 2 comments
Closed
2 tasks done

USBSerial.print('A'); causes compile error #14

teastainGit opened this issue Jan 25, 2023 · 2 comments

Comments

@teastainGit
Copy link

teastainGit commented Jan 25, 2023

Describe the bug

(Similar to Sarah-C three weeks ago but I uninstalled ver 2.0.5 and re-installed.)
Library >Arduino15 › packages > m5stack > hardware > esp32 >2.0.6
No other old M5Stack versions left over.
Deleted the AtomS3 Library and re-installed fresh from your repository.)

PROBLEM:
In the example from your GitHub repository "Button.ino" (and all the examples) produces a compile error:

                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/Users/terrystainton/Documents/Arduino/libraries/M5AtomS3-main/examples/Basics/Button/Button.ino: In function 'void loop()':
/Users/terrystainton/Documents/Arduino/libraries/M5AtomS3-main/examples/Basics/Button/Button.ino:32:9: error: 'USBSerial' was not declared in this scope
USBSerial.print('A');
^~~~~~~~~
/Users/terrystainton/Documents/Arduino/libraries/M5AtomS3-main/examples/Basics/Button/Button.ino:32:9: note: suggested alternative: 'Serial'
USBSerial.print('A');
^~~~~~~~~
Serial

exit status 1

Compilation error: 'USBSerial' was not declared in this scope

To reproduce

iMac 24-inch, M1, 2021
Chip Apple M1
Memory 16 GB
Startup disk Macintosh HD
macOS Ventura 13.1

Expected behavior

upload and run

Screenshots

No response

Environment

  • OS:iMac 24-inch, M1, 2021 Chip Apple M1 Memory 16 GB macOS Ventura 13.1

  • IDE &IDE Version: Arduino V2.0.3

  • Repository Version: M5Stack ver 2.0.6
    M5AtomS3 Version 0.0.2

Additional context

10 years Arduino, 3 years M5Stack experience

Issue checklist

  • I searched for previous reports in the issue tracker
  • My report contains all necessary details
@Tinyu-Zhao
Copy link
Collaborator

Perhaps there is a local cache package that is not downloading the latest M5Stack version definition
Please delete the following path, uninstall the M5Stack 2.0.6 definition and try again
/Users//Library/Arduino15/staging/packages

@teastainGit
Copy link
Author

Tinyu: Thank you very much, problem, solved!
-Terry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants