Continuing on from the original question...
I note the library correctly assumes assigned pins may be used by another device...
I'm also guessing most (if not all) libraries also follow suit...
If this is true, in theory data lines can be multiplexed (allowing for time critical code)...
Therefore the following code should work...
void loop()
{
char key = keypad.getKey();
if(key)
{
lcd.write(key);
do some more stuff...
}
}
Can anyone confirm or deny if this assumption is correct?
Footnote:
Keypad: getkey() calls getKeyState(), which calls initializePins() to initialise the pins to the correct state...
LCD: The pins are designated as output prior to sending data to the LCD...