Good evening
I'm trying to compile some Mozzi code for a Teensy 2.0, and I always get the same error:
c:\Users\squid\Documents\Arduino\libraries\Mozzi/internal/MozziGuts_impl_AVR.hpp: In function 'uint8_t MozziPrivate::adcPinToChannelNum(uint8_t)'
c:\Users\squid\Documents\Arduino\libraries\Mozzi/internal/MozziGuts_impl_AVR.hpp:42:37: error: 'P' was not declared in this scope
pin = pgm_read_byte(adc_mapping + (P));
^
exit status 1
I'm using Mozzi 2.0.1 and FixMath 1.0.6, I have the current PJRC Arduino extension, and have the same issue on Arduino on two different computers.
I have tried compiling even the simplest standard Mozzi example code - e.g. 01.Basics Sinewave, and I still get the same error, so I don't think there's an error in the code.
I've tried compiling the same code for a Leonardo (same 32u4 processor) and the code compiles without any error.
Am I missing something stupid or is this a Mozzi bug?
Thanks
Steve