Hi all,
I (a newbie in Arduino, 25yrs since I've written my last C++ code) am trying to debug an library conflict or incompatibility error with incuding buttons.h which appars to be a legacy library. I do this while trying to use someone else's code from 2015. I use the latest IDE 1.8.5.
The code is
#include <buttons.h>
#include <MENWIZ.h>
void setup()
{
pinMode(24, OUTPUT);
digitalWrite(24, HIGH);
}
void loop()
{
}
The error is "***\Arduino\libraries\Buttons/buttons.h:25:7: error: redefinition of 'class Button'
class Button {
"
Commenting out MENWIZ allows buttons.h alone to compile fine but removing buttons.h produces a truck load of errors in MENWIZ.h confirming that MENWIZ requires buttons.h to work (which I have read somewhere about as well). The old code that I am trying to revive has been working (supposedly) fine with IDE 1.0.5.
Is there an easy way to figure out why defining "class Button" has become a probem since then?
Thank you folks!