Ward123:
This code:class myclass
{
LiquidCrystal *lcd;
}
Is it supposed to be in the header of my Menu library, as a second class?
Add " LiquidCrystal *lcd" as a new member variable to your menu class in your header.
Ward123:
myclass:setLC(LiquidCrystal *_lcd) { lcd = _lcd; }Should belong in the Menu.cpp file as a new constructor?
Yes, this would also be usefull for the user.
class Menu
{
public:
Menu();
...
will become
class Menu
{
private:
LiquidCrystal *lcd;
public:
Menu(LiquidCrystal *_lcd);
...
Oliver