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

"'Serial' was not declared in this scope" when used with Teensy audio library #2

Open
miakizz opened this issue Mar 14, 2021 · 0 comments

Comments

@miakizz
Copy link

miakizz commented Mar 14, 2021

Hello!

Thanks so much for the useful library! I'm trying to use this along with the Teensy audio library, to take audio input through I2S. However, whenever I try to compile code with the "USB Type" set to "NS Gamepad", I get many errors related to Serial not being defined. For example:

control_ak4558.cpp: In member function 'void AudioControlAK4558::initConfig()':
control_ak4558.cpp:25:3: error: 'Serial' was not declared in this scope
   Serial.print("Register ");

I'm guessing this is related to the teensy not including USB serial when emulating a gamepad, however other USB types that don't include serial, such as "Audio" or "Keyboard" don't produce those errors. Maybe those other board types are spoofing the Serial class?

Any ideas would be greatly appreciated. Thanks!

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

1 participant