Moved LCD and gpio code to separate class.