Lucas Borges
/
MenuLCD_Copy
this locks like shit
Fork of MenuLCD_copy by
menbed/menbedMenu.cpp@0:92357d1220f3, 2017-05-19 (annotated)
- Committer:
- ViniR
- Date:
- Fri May 19 13:07:52 2017 +0000
- Revision:
- 0:92357d1220f3
Ent?o PARA...
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ViniR | 0:92357d1220f3 | 1 | #include "mbed.h" |
ViniR | 0:92357d1220f3 | 2 | #include "include/menbedMenuItem.h" |
ViniR | 0:92357d1220f3 | 3 | #include "include/menbedMenu.h" |
ViniR | 0:92357d1220f3 | 4 | |
ViniR | 0:92357d1220f3 | 5 | MenbedMenu::MenbedMenu (uint8_t nItems, MenbedMenuItem *items[]) |
ViniR | 0:92357d1220f3 | 6 | { |
ViniR | 0:92357d1220f3 | 7 | parentMenu = NULL; |
ViniR | 0:92357d1220f3 | 8 | parentSelectedItemIndex = -1; |
ViniR | 0:92357d1220f3 | 9 | parentTopOfScreenItemIndex = 0; |
ViniR | 0:92357d1220f3 | 10 | |
ViniR | 0:92357d1220f3 | 11 | for (int i = 0; i<nItems; i++) |
ViniR | 0:92357d1220f3 | 12 | menuItems.push_back (items[i]); |
ViniR | 0:92357d1220f3 | 13 | } |