jonblack / arduino-menusystem

Arduino library for implementing a menu system
MIT License
194 stars 85 forks source link

Use flags to include components #60

Closed jonblack closed 7 years ago

jonblack commented 7 years ago

The only components that ought to be available by default are MenuComponent, Menu, and MenuItem. The remaining components should be available when a flag is defined:

jonblack commented 7 years ago

Whilst this is a nice idea, the saving is actually quite small and it adds a bit of complexity to the code because in multiple file projects, the #define would need to go in multiple files because Arduino IDE users don't have control over the makefile (where the define could be placed once). This will add to developer confusion.