Shrink and clean up dogm lcd code
Edit code for folding, concision, and readability

Editors like Sublime and Textmate don’t fold code well if containers
(including compiler directives) aren’t indented consistently. Syntax
leaning toward 2-space indent, liberal use of ternary, spaces around
operators, and 1TBS. Code in LCD implementations edited for redundancy.