You got the pin out of the forest . .
, it seems, that i did add new case number and forget to update the value for itmIdx & N_items;
What's the purpose of funcActive, ReadPhoto and TempRead?funcActive
purpose is to make the function "pumpControlON()" only after reading percentage moisture value, as my threshold value to run my pump rely on this value.
Why, i used this state, because since only after about 3000UL will i get my percentage reading,whereby the loop speed is in ms.ReadPhoto
are used to take reading from analog pins within a time interval, so as to prevent noise occured when taking reading on several analog pins at almost same time.
Thanks for your treat bill, my sketch is working nice.
, my display is still swapping menu automatically, and when i pressed my switch it swap the menu quicker.
Just a suggestion here : pin 1 and 0 are for Tx & Rx, im additionally using Serial.begin, while having connected my switch button on pin 1 and moreover activated the INPUT_PULLUP.
Any suggestion if the bug is derivating from these, stuffs.
 i just comment on the : // Serial.begin (9600) . . and here my display work as the code dictates . .
, but when my switch case for modedisplay return to 0 each time, everything seems to reset and start over again along with small bugs.
If im commenting the //Serial.begin (9600), should i also be commenting all instruction within the code making use of the serial port ?
(. .trying this in meantime . . )
Explanations are welcomed;
Thanks . . .
taz . .