ive looked up on the internet for examples of a daytime counter or a time clock with days on it. i find something called a daytime counter that uses an lcd keypad not the normal keypad. and i want to create a function or edit its code to make an input using my 4x3 keypad instead of using buttons to increment or decrement its value on its menus.
This are the codes that i want to change :
i manage to change its button codes to keypad but i can only use it to increment its value not totally input values using keypad.
case ‘2’:
switch (setting) {
case DAYS:
//////////instead of incrementing, i want to input its values ///////////////
days++;
if (days == 32) days = 1;
break;
case HOURS:
hours++;
if (hours == 25) hours = 1;
break;
case MINUTES:
minutes++;
if (minutes == 60) minutes = 1;
break;
case SECONDS:
seconds++;
if (seconds == 60) seconds = 1;
break;
}
ok, i was taking licence with his mention of LCD...
“that uses an lcd keypad not the normal keypad. and i want to create a function or edit its code to make an input using my 4x3 keypad instead of using buttons”
Either way, I suspect OP’s out of his depth until his skills catch up with his plans.