Closed jpasichnyk closed 4 years ago
I actually am getting that redefinition warning. My lower pane of the Arduino IDE was very small so I didn't even notice it as it was quickly paged out of view.
I'll take a pass at implementing these changes and update the pull.
This now compiles without any any variable redefinition warnings.
I added a few extra comments to it as well.
Hi,
Before merging, do you by any chance get warning for redefinition of
NUM_ANALOG_INPUTS
? A word came about this here: https://github.com/Cleric-K/vJoySerialFeeder/issues/38#issuecomment-682035093I don't have mega so you and @CubicVirtuoso are probably the first ones to test with it. Seems the
NUM_..._INPUTS
names are already used in Arduino/AVR headers.Would it be possible to make this commit as follow:
A0
,A1
, etc. (I don't remember why I haven't used theA
defs in the first place)#define ANALOG_REFERENCE
toDEFAULT
. I prefer this#define
to stay, because it is a reminder that the analog reference must be changed if needed. It seems it has stayed toEXTERNAL
from the times I was using a toy transmitter with Arduino. Since the tx had its own power supply and the pots were using 3.3V I had to wire that toAREF
and set the define toEXTERNAL
. I have overlooked that - it is better to keep the define atDEFAULT
.NUM...
defines toCOUNT...
or something else if you have better idea.Thank you!