We now have all the bits we need to make the final program. I have decided on the sequence of actions given on the right. I can use code from previous programs to perform debounced reading of a button in PORTA (note that I also have to set PORTA up as an input).

By pulling together the sample programs above you should now be able to create a "Mystic LCD". Remember to use the debugging techniques that I describe above if your program fails to work.