Menu for Display

Ciao Oliver,
from the logical stand point it's ok ... but to be honest I don't know how to realize it ... so:

uint8_t v;
M2_U8NUM(el_num, "r1", 0, 255, &v);

this is ok, because i use it normally into the menu i fill "v" when I push button ...

Now you mean ... for example into "Ok" button do something like this:

void viewdate{
v = RTC.get(DS1307_HR,true);
}

M2_BUTTON(el_num_zero, "f4", " Ok", viewdate);

then automatically into there will be the current date time ...

I thinks that soon i will be able to the test my menu with display and button ... you was telling me that the button will active when "low",
correct ? is necessary a resistor ? if you can provide to me a little schema will be great :slight_smile: ... so my understanding is this ...

correct ? just the idea what means active low could i test with serial menu ?

so then just add to the sketch this code:

uint8_t uiKeySelectPin = 10;
uint8_t uiKeyNextPin = 9;

and modify this code :

M2tk m2(&top_el_expandable_menu, m2_es_arduino_serial, m2_eh_2bs, m2_gh_arduino_serial);

with this :

M2tk m2(&top_el_expandable_menu, m2_es_arduino, m2_eh_2bs, m2_gh_arduino);

In order to use 2 button ...

if i'd like to use additional 2 but buttons just put this:

M2tk m2(&top_el_expandable_menu, m2_es_arduino, m2_eh_4bs, m2_gh_arduino);

and then declare additional buttons ?

thanks 10000
gnux