Então PARA...

Dependencies:   MenuLCD mbed

menbed/menbedMenu.cpp

Committer:
ViniR
Date:
2017-05-19
Revision:
0:92357d1220f3

File content as of revision 0:92357d1220f3:

#include "mbed.h"
#include "include/menbedMenuItem.h"
#include "include/menbedMenu.h"

MenbedMenu::MenbedMenu (uint8_t nItems, MenbedMenuItem *items[])
{
    parentMenu = NULL;
    parentSelectedItemIndex = -1;
    parentTopOfScreenItemIndex = 0;

    for (int i = 0; i<nItems; i++)
        menuItems.push_back (items[i]);
}