AdaFruit Audio Library doesn't support Metro M4 Airlift?
I'm trying to get the Adafruit audio library working with my Metro M4 Express Airlift Lite. In two examples I've tried, WavFilePlayer and sketch_jun13a, I'm getting the same error:
Code:
Audio_-_Adafruit_Fork/input_adcs.cpp:161:2: error: #error The Adafruit audio library is compatible with M4 parts only
161 | #error The Adafruit audio library is compatible with M4 parts only
Beginning on Line 122 in input_adcs.cpp, the compiler goes through if/elif/else statements to detect the board variant (_VARIANT_ITSYBITSY_M4_, _VARIANT_FEATHER_M4_, etc.), and gets to the end without matching any of the supported boards.
I think the board variant for the Metro M4 Express Airlift Lite is "ADAFRUIT_METRO_M4_AIRLIFT_LITE", but the compiler obviously doesn't think that _VARIANT_METRO_M4 on line 138-143 is true, otherwise the following would be called and the error "The Adafruit audio library is compatible with M4 parts only" on line 161 wouldn't get triggered:
Code:
#elif defined(_VARIANT_METRO_M4_)
switch (pin1)
{
case PIN_A4: ADC1Channel = ADC_Channel0; break;
case PIN_A5: ADC1Channel = ADC_Channel1; break;
}
Any help would be greatly appreciated.