Make main's lcd a pointer.
Make the clock 'active low' (?) per the epson dataheet examples.
Shutdown GPIO on exit.