Squirrel code to write a pins state to LCD

Ive had no success, anyone out thee have an example snippet I can draw upon?