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
Compilation error when including M5AtomS3.h #23
Comments
Change the USBSerial object to Serial in M5AtomS3.cpp , and compile. if (USBSerialEnable) {
Serial.begin(115200);
Serial.flush();
delay(1200);
Serial.println("M5AtomS3 initializing...OK");
} Works |
@Feryx10 thank you very much this works! I hope this gets fixed in the library as the example fresh out of the repository does not work without this fix :) |
I was having the same problem. I opened M5AtomS3.cpp with a text editor, changed it like you said, but I don't know how to compile the .cpp file. I saved the .cpp file after I edited it. I then tried to compile the example "button" from the ATOMS3 basic example and instead of getting the "USBSerial not described in this scope I got a new error... In file included from /Users/dianehallinen/Documents/Arduino/libraries/FastLED/src/FastLED.h:75, 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()' exit status 1 Compilation error: redefinition of 'void setup()' I'm a very basic arduino person, I've never messed around with the .cpp files. Should I wait and hope the library gets fixed or am is there something I should try to fix. Thanks so much for posting your reply and asking this question. |
Getting Constant errors trying to setup an AtomS3 lite with both the ENVIII and ENVIIV sensors. I can never seem to get it to Arduino |
Describe the bug
I'm trying to get started with the M5 AtomS3 Lite board and to write a simple LED blink program ... unfortunately there are no PINs defined so I tried to use the official sample (https://github.com/m5stack/M5AtomS3/blob/main/examples/Basics/Led/Led.ino) which is linked from the product page of the M5 AtomS3 Lite (https://shop.m5stack.com/products/atoms3-lite-esp32s3-dev-kit).
Unfortunately every time I try to follow the linked sample or even just include the M5AtomS3.h in a sample file which was working before I get the following error:
To reproduce
Expected behavior
Work like described in the documentation/sample
Screenshots
No response
Environment
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: