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

Compilation fails for Arduino Nano Every #131

Open
assemblu opened this issue Jul 23, 2021 · 2 comments
Open

Compilation fails for Arduino Nano Every #131

assemblu opened this issue Jul 23, 2021 · 2 comments

Comments

@assemblu
Copy link

Hi,

I downloaded the latest release (not pre-release) and currently running a firmware that has MonoOutput class to it. However, compilation fails due to error 'MonoOutput' has not been declared

Any help would be appreciated.

@sensorium
Copy link
Owner

sensorium commented Jul 25, 2021 via email

@kanduvisla
Copy link

Hi, I also get this error when trying to compile for Arduino Nano Every.

I downloaded the ZIP file from GitHub (not from releases), and I checked and it looks like the master-branch has the latest code on it. But still I'm getting the error:

In file included from /.../Arduino/libraries/Mozzi-master/MozziGuts.h:207:0,
                 from /.../Arduino/mozzi_tst/mozzi_tst.ino:1:
/.../Arduino/libraries/Mozzi-master/AudioOutput.h: In function 'void audioOutput(MonoOutput)':
/.../Arduino/libraries/Mozzi-master/AudioConfigStandardPlus.h:20:41: error: 'OCR1A' was not declared in this scope
 #define AUDIO_CHANNEL_1_OUTPUT_REGISTER OCR1A
                                         ^
/.../Arduino/libraries/Mozzi-master/AudioOutput.h:365:3: note: in expansion of macro 'AUDIO_CHANNEL_1_OUTPUT_REGISTER'
   AUDIO_CHANNEL_1_OUTPUT_REGISTER = f.l()+AUDIO_BIAS;
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
exit status 1
Error compiling for board Arduino Nano Every.

If I try to compile for a "regular" Arduino Nano it shows no errors.

@tomcombriat tomcombriat changed the title 'MonoOutput' has not been declared Compilation fails for Arduino Nano Every Jan 31, 2023
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

3 participants