Hello, me again.
So , I was using some knock-off nano boards to make MIDI controllers with Pieter P's STILL fabulous Control Surface Library, and everything was great.
BUT- I fried a couple of them by sending 12 or 13 V.
So, I did some reading, and I got a few of these official, name-brand NANO EVERY boards, because they apparently are more voltage tolerant, and I saw in some of the docs for Control_Surface that the NANO-EVERY was tested.
But it wont compile.
I can compile basic example sketches just fine, but when I #include <Control_Surface.h>, it fails.
The log starts with this WARNING,:
WARNING: library Control-Surface-master claims to run on avr, sam, samd, teensy, esp32 architecture(s) and may be incompatible with your current board which runs on megaavr architecture(s)
Followed by many repetitions of this error:
In file included from D:\MY DOCS\Arduino\libraries\Control-Surface-master\src\AH\Math\Vector.cpp:1:0:
D:\MY DOCS\Arduino\libraries\Control-Surface-master\src\AH\Math\Vector.hpp:262:1: error: reference to 'Print' is ambiguous
Print &operator<<(Print &os, Vec2f v);
^~~~~
D:\MY DOCS\Arduino\libraries\Control-Surface-master\src\AH\Math\Vector.hpp:12:7: note: candidates are: class Print
class Print;
^~~~~
>SNIPPED MANY EXAMPLES OF THE SAME<exit status 1
Error compiling for board Arduino Nano Every.
I tried adding megaavr to the Library.Properties file.. which avoids the warning, but the errors remain.
I have tried compiling under ATMEGA4809 and the emulator for 328, no change.
I can't seem to find a solution for googles.
So I come to you with the question:
Is this something I can fix? Or should I re-write under a different library?
Thank you for your time,
cameron