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

Compile error on Arduino nano #300

Closed
riyant56 opened this issue Jan 4, 2025 · 8 comments
Closed

Compile error on Arduino nano #300

riyant56 opened this issue Jan 4, 2025 · 8 comments

Comments

@riyant56
Copy link

riyant56 commented Jan 4, 2025

On The latest version of mozzi 2.00 when i compile any code with this library it shows
A error compiling

/storage/emulated/0/ArduinoDroid/userlibraries/Mozzi/ hardware_defines.h:52:73: error: missing binary operator before token "("

Im doing it on Android , my pc got damaged😔
Any help is appreciated

@tomcombriat
Copy link
Collaborator

Hi,
What board exactly are you using? I bet this isn't the old AVR based nano right?

@riyant56
Copy link
Author

Its with the ch340 ic and old bootloader

@tomcombriat tomcombriat linked a pull request Jan 13, 2025 that will close this issue
@tomcombriat tomcombriat removed a link to a pull request Jan 13, 2025
@tomcombriat
Copy link
Collaborator

Ah, so I guess this is not a genuine Arduino Nano. My guess is that it fails the tests to find which board it is and hence, is not recognized as a Nano (which is normally an ATMega based board). If you can find the correct #defined for hardware_defines.h for this board I am happy to add it!

@riyant56
Copy link
Author

Any board i try it(including genuine Arduino) does not work
i think its the problem of the android app called Arduinodroid can you help me out
Thanks for response

@tomcombriat
Copy link
Collaborator

Hi,
I think the problem is more to be found on ArduinoDroid's side, as this works on the standard Arduino's IDE. Wild guess, I think the compiler does not set the board's define (line 24 of hardware_defines.h). You could try to add #define __AVR__ at the very top of your sketch…

@riyant56
Copy link
Author

No luck with #define AVR
What can i do now
Your help is appreciated

@tomcombriat
Copy link
Collaborator

What can i do now

I think your best course of action is to contact directly the authors of this app… Mozzi works with your architecture (AVR) on the standard Arduino IDE, hence is Arduino compliant but apparently the app you use is not completely and this is impossible for us, without the source code of that app (and even if we had it, would be a lot of work) to trace where is the compatibility broken…

@riyant56
Copy link
Author

Ok thanks for your response :⁠-⁠)
You helped me
now i will try it with
Other ide

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