hapiel / Acrobot

The Acrobot is a robotic circus performer made by Daniel Simu
http://acrobot.nl/
5 stars 0 forks source link

menu is not in a class #27

Closed hapiel closed 10 months ago

hapiel commented 10 months ago

Menu can't be in a class because it crashes the lcd library for some reason.

A fix for this would allow for much cleaner code.

For example, now updateMenuText() is in main, because that gives easier access to all the relevant variables, as other instances can't be passed to menu.h

Do you know a way to put the menu.h page in a class without breaking the LcdMenu library @nikensss ?

hapiel commented 10 months ago

Rewrote this, now it works, with some changes to the library too. (inline functions) 92eb7861ff284e735031769f2b43a31691ce71dc