You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Arduino IDE version (found in Arduino -> About Arduino menu): 1.6.12
Steps to reproduce the problem:
Compile and upload ~/Arduino/libraries/Adafruit_Circuit_Playground/examples/demo.ino
~/Arduino/libraries/Adafruit_Circuit_Playground/utility/Adafruit_CPlay_Mic.cpp: In member function 'int Adafruit_CPlay_Mic::peak(uint16_t)':
~/Arduino/libraries/Adafruit_Circuit_Playground/utility/Adafruit_CPlay_Mic.cpp:27:37: error: 'analogPinToChannel' was not declared in this scope
channel = analogPinToChannel(4); // Pin A4 to ADC channel
^
~/Arduino/libraries/Adafruit_Circuit_Playground/utility/Adafruit_CPlay_Mic.cpp: In member function 'void Adafruit_CPlay_Mic::capture(int16_t*, uint8_t)':
~/Arduino/libraries/Adafruit_Circuit_Playground/utility/Adafruit_CPlay_Mic.cpp:84:37: error: 'analogPinToChannel' was not declared in this scope
channel = analogPinToChannel(4); // Pin A4 to ADC channel
^
exit status 1
Error compiling for board Arduino/Genuino Uno.
The text was updated successfully, but these errors were encountered:
I found that on my Bare-Bones board (I use the Arduino/Genuino Uno board option) I just had to comment out the line:
//#include <Adafruit_Circuit_Playground.h>
I believe this line is for the specific Adafruit board.
Compile and upload
~/Arduino/libraries/Adafruit_Circuit_Playground/examples/demo.ino
The text was updated successfully, but these errors were encountered: